summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-11-14 23:10:04 +0000
committerHans Wennborg <hans@hanshq.net>2017-11-14 23:10:04 +0000
commit57dd59d472d30a57d2c63a9ff5f455db29ee75e1 (patch)
tree2dd9c2a9185dccc85c622ca8ac81ac8b57f20961
parent39e7ce8f2150ad3677329af4fad882faf787672b (diff)
downloadbcm5719-llvm-57dd59d472d30a57d2c63a9ff5f455db29ee75e1.tar.gz
bcm5719-llvm-57dd59d472d30a57d2c63a9ff5f455db29ee75e1.zip
Try to fix the instrument-functions tests
On e.g. PPC the return value and argument were marked 'signext'. This makes the test expectations a bit more flexible. Follow-up to r318199. llvm-svn: 318214
-rw-r--r--clang/test/CodeGen/instrument-functions.c4
-rw-r--r--clang/test/CodeGenCXX/instrument-functions.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/instrument-functions.c b/clang/test/CodeGen/instrument-functions.c
index d3f043628bf..b440e6a2635 100644
--- a/clang/test/CodeGen/instrument-functions.c
+++ b/clang/test/CodeGen/instrument-functions.c
@@ -1,14 +1,14 @@
// RUN: %clang_cc1 -S -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s
int test1(int x) {
-// CHECK: define i32 @test1(i32 %x) #[[ATTR1:[0-9]+]]
+// CHECK: @test1(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
// CHECK: ret
return x;
}
int test2(int) __attribute__((no_instrument_function));
int test2(int x) {
-// CHECK: define i32 @test2(i32 %x) #[[ATTR2:[0-9]+]]
+// CHECK: @test2(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
// CHECK: ret
return x;
}
diff --git a/clang/test/CodeGenCXX/instrument-functions.cpp b/clang/test/CodeGenCXX/instrument-functions.cpp
index 0bec289e83e..45ae48235a9 100644
--- a/clang/test/CodeGenCXX/instrument-functions.cpp
+++ b/clang/test/CodeGenCXX/instrument-functions.cpp
@@ -1,14 +1,14 @@
// RUN: %clang_cc1 -S -emit-llvm -triple %itanium_abi_triple -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s
int test1(int x) {
-// CHECK: define i32 @_Z5test1i(i32 %x) #[[ATTR1:[0-9]+]]
+// CHECK: @_Z5test1i(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
// CHECK: ret
return x;
}
int test2(int) __attribute__((no_instrument_function));
int test2(int x) {
-// CHECK: define i32 @_Z5test2i(i32 %x) #[[ATTR2:[0-9]+]]
+// CHECK: @_Z5test2i(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
// CHECK: ret
return x;
}
OpenPOWER on IntegriCloud