Xinliang David Li | 4dff875 | 2015-11-23 17:30:31 +0000 | [diff] [blame] | 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 | ||||
11 | int main(void) | ||||
12 | { | ||||
13 | return 0; | ||||
14 | } |