2015-11-24 01:30:31 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -pg -S -o - %s | \
|
|
|
|
// RUN: FileCheck %s
|
2019-07-21 06:50:50 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=all -pg -S -o - %s | \
|
|
|
|
// RUN: FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \
|
2015-11-24 01:30:31 +08:00
|
|
|
// RUN: FileCheck %s
|
|
|
|
|
|
|
|
// Test that the frame pointer is kept when compiling with
|
|
|
|
// profiling.
|
|
|
|
|
|
|
|
//CHECK: pushq %rbp
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|