diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
commit | 4362261b0093730e46ffcad910e8b465cf0bb1cb (patch) | |
tree | b05fa6d247505d0ab46b16619f702532e189f698 /clang/test/CodeGen/trapv.c | |
parent | 83e042a21b5392882ccc020baa9ade52851b5903 (diff) | |
download | bcm5719-llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.tar.gz bcm5719-llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.zip |
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
llvm-svn: 188447
Diffstat (limited to 'clang/test/CodeGen/trapv.c')
-rw-r--r-- | clang/test/CodeGen/trapv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/trapv.c b/clang/test/CodeGen/trapv.c index bc8bc700636..51034108ee4 100644 --- a/clang/test/CodeGen/trapv.c +++ b/clang/test/CodeGen/trapv.c @@ -3,7 +3,7 @@ unsigned int ui, uj, uk; int i, j, k; -// CHECK: define void @test0() +// CHECK-LABEL: define void @test0() void test0() { // -ftrapv doesn't affect unsigned arithmetic. // CHECK: [[T1:%.*]] = load i32* @uj @@ -23,7 +23,7 @@ void test0() { i = j + k; } -// CHECK: define void @test1() +// CHECK-LABEL: define void @test1() void test1() { extern void opaque(int); opaque(i++); @@ -37,7 +37,7 @@ void test1() { // CHECK: call void @llvm.trap() } -// CHECK: define void @test2() +// CHECK-LABEL: define void @test2() void test2() { extern void opaque(int); opaque(++i); @@ -51,7 +51,7 @@ void test2() { // CHECK: call void @llvm.trap() } -// CHECK: define void @test3( +// CHECK-LABEL: define void @test3( void test3(int a, int b, float c, float d) { // CHECK-NOT: @llvm.trap (void)(a / b); |