Author: hans Date: Tue Nov 14 15:10:04 2017 New Revision: 318214 URL: http://llvm.org/viewvc/llvm-project?rev=318214&view=rev Log: 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. Modified: cfe/trunk/test/CodeGen/instrument-functions.c cfe/trunk/test/CodeGenCXX/instrument-functions.cpp Modified: cfe/trunk/test/CodeGen/instrument-functions.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/instrument-functions.c?rev=318214&r1=318213&r2=318214&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/instrument-functions.c (original) +++ cfe/trunk/test/CodeGen/instrument-functions.c Tue Nov 14 15:10:04 2017 @@ -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; } Modified: cfe/trunk/test/CodeGenCXX/instrument-functions.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/instrument-functions.cpp?rev=318214&r1=318213&r2=318214&view=diff ============================================================================== --- cfe/trunk/test/CodeGenCXX/instrument-functions.cpp (original) +++ cfe/trunk/test/CodeGenCXX/instrument-functions.cpp Tue Nov 14 15:10:04 2017 @@ -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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits