[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / x86_64-profiling-keep-fp.c
blobc22fafd749499a1ab4498112366f54dad0ade47f
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
9 // Test that the frame pointer is kept when compiling with
10 // profiling.
12 //CHECK: pushq %rbp
13 int main(void)
15 return 0;