summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/x86_64-profiling-keep-fp.c
blob: a51d87fa63656cf50523bdca84f605d45a7c75cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -pg -S -o - %s | \
// RUN:   FileCheck %s
// 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 | \
// RUN:   FileCheck %s

// Test that the frame pointer is kept when compiling with
// profiling.

//CHECK: pushq %rbp
int main(void)
{
  return 0;
}
OpenPOWER on IntegriCloud