| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \ |
| 3 |
// RUN: FileCheck %s |
| 4 |
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=all -pg -S -o - %s | \ |
| 5 |
// RUN: FileCheck %s |
| 6 |
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \ |
| 7 |
// RUN: FileCheck %s |
| 8 |
|
| 9 |
// Test that the frame pointer is kept when compiling with |
| 10 |
// profiling. |
| 11 |
|
| 12 |
//CHECK: pushq %rbp |
| 13 |
int main(void) |
| 14 |
{ |
| 15 |
return 0; |
| 16 |
} |