diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-06-29 17:29:50 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-06-29 17:29:50 +0000 |
commit | 51b2a6bc7d3fe59f6502508a133d607f73409f16 (patch) | |
tree | e2cb4a66d5d99f40c55a303d4a272ec0d6adf2fc /test/CodeGen/volatile-1.c | |
parent | e224f9922d6c828390c13e7606555761dc35fd5c (diff) |
Account for calling convention specifiers in function definitions in IR test cases
Several tests wouldn't pass when executed on an armv7a_pc_linux triple
due to the non-default arm_aapcs calling convention produced on the
function definitions in the IR output. Account for this with the
application of a little regex.
Patch by Ying Yi.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/volatile-1.c')
-rw-r--r-- | test/CodeGen/volatile-1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/volatile-1.c b/test/CodeGen/volatile-1.c index 71cd5f8d1b..f63274b37f 100644 --- a/test/CodeGen/volatile-1.c +++ b/test/CodeGen/volatile-1.c @@ -22,7 +22,7 @@ int printf(const char *, ...); // that do implicit lvalue-to-rvalue conversion are substantially // reduced. -// CHECK-LABEL: define void @test() +// CHECK-LABEL: define {{.*}}void @test() void test() { // CHECK: load volatile [[INT]], [[INT]]* @i i; @@ -303,11 +303,11 @@ void test() { } extern volatile enum X x; -// CHECK-LABEL: define void @test1() +// CHECK-LABEL: define {{.*}}void @test1() void test1() { extern void test1_helper(void); test1_helper(); - // CHECK: call void @test1_helper() + // CHECK: call {{.*}}void @test1_helper() // CHECK-NEXT: ret void x; (void) x; |