Clang Project

clang_source_code/test/CodeGen/x86_64-profiling-keep-fp.c
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
11int main(void)
12{
13  return 0;
14}
15