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
This commit is contained in:
Hans Wennborg 2017-11-14 23:10:04 +00:00
parent 39e7ce8f21
commit 57dd59d472
2 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,14 @@
// RUN: %clang_cc1 -S -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s // RUN: %clang_cc1 -S -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s
int test1(int x) { int test1(int x) {
// CHECK: define i32 @test1(i32 %x) #[[ATTR1:[0-9]+]] // CHECK: @test1(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
// CHECK: ret // CHECK: ret
return x; return x;
} }
int test2(int) __attribute__((no_instrument_function)); int test2(int) __attribute__((no_instrument_function));
int test2(int x) { int test2(int x) {
// CHECK: define i32 @test2(i32 %x) #[[ATTR2:[0-9]+]] // CHECK: @test2(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
// CHECK: ret // CHECK: ret
return x; return x;
} }

View File

@ -1,14 +1,14 @@
// RUN: %clang_cc1 -S -emit-llvm -triple %itanium_abi_triple -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s // RUN: %clang_cc1 -S -emit-llvm -triple %itanium_abi_triple -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s
int test1(int x) { int test1(int x) {
// CHECK: define i32 @_Z5test1i(i32 %x) #[[ATTR1:[0-9]+]] // CHECK: @_Z5test1i(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
// CHECK: ret // CHECK: ret
return x; return x;
} }
int test2(int) __attribute__((no_instrument_function)); int test2(int) __attribute__((no_instrument_function));
int test2(int x) { int test2(int x) {
// CHECK: define i32 @_Z5test2i(i32 %x) #[[ATTR2:[0-9]+]] // CHECK: @_Z5test2i(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
// CHECK: ret // CHECK: ret
return x; return x;
} }