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/libcalls.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/libcalls.c')
| -rw-r--r-- | clang/test/CodeGen/libcalls.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGen/libcalls.c b/clang/test/CodeGen/libcalls.c index 29d82db65a9..520b79b146a 100644 --- a/clang/test/CodeGen/libcalls.c +++ b/clang/test/CodeGen/libcalls.c @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -fmath-errno -emit-llvm -o - %s -triple i386-unknown-unknown | FileCheck -check-prefix CHECK-YES %s // RUN: %clang_cc1 -emit-llvm -o - %s -triple i386-unknown-unknown | FileCheck -check-prefix CHECK-NO %s -// CHECK-YES: define void @test_sqrt -// CHECK-NO: define void @test_sqrt +// CHECK-YES-LABEL: define void @test_sqrt +// CHECK-NO-LABEL: define void @test_sqrt void test_sqrt(float a0, double a1, long double a2) { // Following llvm-gcc's lead, we never emit these as intrinsics; // no-math-errno isn't good enough. We could probably use intrinsics @@ -28,8 +28,8 @@ void test_sqrt(float a0, double a1, long double a2) { // CHECK-NO: declare double @sqrt(double) [[NUW_RN]] // CHECK-NO: declare x86_fp80 @sqrtl(x86_fp80) [[NUW_RN]] -// CHECK-YES: define void @test_pow -// CHECK-NO: define void @test_pow +// CHECK-YES-LABEL: define void @test_pow +// CHECK-NO-LABEL: define void @test_pow void test_pow(float a0, double a1, long double a2) { // CHECK-YES: call float @powf // CHECK-NO: call float @llvm.pow.f32 @@ -51,8 +51,8 @@ void test_pow(float a0, double a1, long double a2) { // CHECK-NO: declare double @llvm.pow.f64(double, double) [[NUW_RO]] // CHECK-NO: declare x86_fp80 @llvm.pow.f80(x86_fp80, x86_fp80) [[NUW_RO]] -// CHECK-YES: define void @test_fma -// CHECK-NO: define void @test_fma +// CHECK-YES-LABEL: define void @test_fma +// CHECK-NO-LABEL: define void @test_fma void test_fma(float a0, double a1, long double a2) { // CHECK-YES: call float @llvm.fma.f32 // CHECK-NO: call float @llvm.fma.f32 |

