xref: /aosp_15_r20/external/clang/test/CodeGen/x86_64-profiling-keep-fp.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -pg -S -o - %s | \
3 // RUN:   FileCheck %s
4 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -momit-leaf-frame-pointer -pg -S -o - %s | \
5 // RUN:   FileCheck %s
6 
7 // Test that the frame pointer is kept when compiling with
8 // profiling.
9 
10 //CHECK: pushq %rbp
main(void)11 int main(void)
12 {
13   return 0;
14 }
15