summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/piclevels.c
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-05-23 00:35:09 +0000
committerTeresa Johnson <tejohnson@google.com>2017-05-23 00:35:09 +0000
commitacf4b09fee3e9fe41237369259170a7f682d26b6 (patch)
treecec755d09213e0447436f9bdd8c9efbaadb7b9a8 /clang/test/CodeGen/piclevels.c
parent37d1cff491358a6bfa4b82f241165a36d4833f9c (diff)
downloadbcm5719-llvm-acf4b09fee3e9fe41237369259170a7f682d26b6.tar.gz
bcm5719-llvm-acf4b09fee3e9fe41237369259170a7f682d26b6.zip
Adjust clang test for r303590
Forgot to commit this separately from the llvm change to use a new module flag type for pic and pie levels. Should fix the bot errors llvm-svn: 303593
Diffstat (limited to 'clang/test/CodeGen/piclevels.c')
-rw-r--r--clang/test/CodeGen/piclevels.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/clang/test/CodeGen/piclevels.c b/clang/test/CodeGen/piclevels.c
index 54744e2efa7..f050af96ff4 100644
--- a/clang/test/CodeGen/piclevels.c
+++ b/clang/test/CodeGen/piclevels.c
@@ -1,7 +1,12 @@
-// RUN: %clang_cc1 -emit-llvm -pic-level 2 %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC
-// RUN: %clang_cc1 -emit-llvm -pic-level 1 %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC
+// RUN: %clang_cc1 -emit-llvm -pic-level 2 %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC -check-prefix=CHECK-NOPIE
+// RUN: %clang_cc1 -emit-llvm -pic-level 1 %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC -check-prefix=CHECK-NOPIE
+// RUN: %clang_cc1 -emit-llvm -pic-level 2 -pic-is-pie %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC -check-prefix=CHECK-BIGPIE
+// RUN: %clang_cc1 -emit-llvm -pic-level 1 -pic-is-pie %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC -check-prefix=CHECK-SMALLPIE
// CHECK-BIGPIC: !llvm.module.flags = !{{{.*}}}
-// CHECK-BIGPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 2}
+// CHECK-BIGPIC: !{{[0-9]+}} = !{i32 7, !"PIC Level", i32 2}
// CHECK-SMALLPIC: !llvm.module.flags = !{{{.*}}}
-// CHECK-SMALLPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 1}
+// CHECK-SMALLPIC: !{{[0-9]+}} = !{i32 7, !"PIC Level", i32 1}
+// CHECK-NOPIE-NOT: PIE Level
+// CHECK-BIGPIE: !{{[0-9]+}} = !{i32 7, !"PIE Level", i32 2}
+// CHECK-SMALLPIE: !{{[0-9]+}} = !{i32 7, !"PIE Level", i32 1}
OpenPOWER on IntegriCloud