summaryrefslogtreecommitdiff
path: root/test/CodeGen/instrument-functions.c
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
commit396cfa4967868a8610913713cb796025468deef2 (patch)
treeb0767497dd029d7f799767e576e8ef859defe9fa /test/CodeGen/instrument-functions.c
parent38cd6e2c89099bb19cc48f1663f1f54942fdbd81 (diff)
downloadclang-396cfa4967868a8610913713cb796025468deef2.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/instrument-functions.c')
-rw-r--r--test/CodeGen/instrument-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/instrument-functions.c b/test/CodeGen/instrument-functions.c
index d3f043628b..b440e6a263 100644
--- a/test/CodeGen/instrument-functions.c
+++ b/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;
}