Adding an additional test to ensure the frame pointer is emitted
authorDouglas Yung <douglas.yung@sony.com>
Wed, 24 Aug 2016 02:02:32 +0000 (02:02 +0000)
committerDouglas Yung <douglas.yung@sony.com>
Wed, 24 Aug 2016 02:02:32 +0000 (02:02 +0000)
when compiling with optimization when PS4 is the target.

llvm-svn: 279603

clang/test/Driver/frame-pointer-elim.c

index d2a2715..e1d816e 100644 (file)
@@ -57,6 +57,8 @@
 // (OMIT_LEAF check line is above)
 // RUN: %clang -### -target x86_64-scei-ps4 -S %s 2>&1 | \
 // RUN:   FileCheck --check-prefix=OMIT_LEAF %s
+// RUN: %clang -### -target x86_64-scei-ps4 -S -O2 %s 2>&1 | \
+// RUN:   FileCheck --check-prefix=OMIT_LEAF %s
 
 void f0() {}
 void f1() { f0(); }