summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/sparcv9-abi.c
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
commit4362261b0093730e46ffcad910e8b465cf0bb1cb (patch)
treeb05fa6d247505d0ab46b16619f702532e189f698 /clang/test/CodeGen/sparcv9-abi.c
parent83e042a21b5392882ccc020baa9ade52851b5903 (diff)
downloadbcm5719-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/sparcv9-abi.c')
-rw-r--r--clang/test/CodeGen/sparcv9-abi.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/clang/test/CodeGen/sparcv9-abi.c b/clang/test/CodeGen/sparcv9-abi.c
index 22803a6d4c4..4ba4be852fe 100644
--- a/clang/test/CodeGen/sparcv9-abi.c
+++ b/clang/test/CodeGen/sparcv9-abi.c
@@ -1,21 +1,21 @@
// RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s
#include <stdarg.h>
-// CHECK: define void @f_void()
+// CHECK-LABEL: define void @f_void()
void f_void(void) {}
// Arguments and return values smaller than the word size are extended.
-// CHECK: define signext i32 @f_int_1(i32 signext %x)
+// CHECK-LABEL: define signext i32 @f_int_1(i32 signext %x)
int f_int_1(int x) { return x; }
-// CHECK: define zeroext i32 @f_int_2(i32 zeroext %x)
+// CHECK-LABEL: define zeroext i32 @f_int_2(i32 zeroext %x)
unsigned f_int_2(unsigned x) { return x; }
-// CHECK: define i64 @f_int_3(i64 %x)
+// CHECK-LABEL: define i64 @f_int_3(i64 %x)
long long f_int_3(long long x) { return x; }
-// CHECK: define signext i8 @f_int_4(i8 signext %x)
+// CHECK-LABEL: define signext i8 @f_int_4(i8 signext %x)
char f_int_4(char x) { return x; }
// Small structs are passed in registers.
@@ -23,7 +23,7 @@ struct small {
int *a, *b;
};
-// CHECK: define %struct.small @f_small(i32* %x.coerce0, i32* %x.coerce1)
+// CHECK-LABEL: define %struct.small @f_small(i32* %x.coerce0, i32* %x.coerce1)
struct small f_small(struct small x) {
x.a += *x.b;
x.b = 0;
@@ -36,7 +36,7 @@ struct medium {
int *c, *d;
};
-// CHECK: define %struct.medium @f_medium(%struct.medium* %x)
+// CHECK-LABEL: define %struct.medium @f_medium(%struct.medium* %x)
struct medium f_medium(struct medium x) {
x.a += *x.b;
x.b = 0;
@@ -50,7 +50,7 @@ struct large {
int x;
};
-// CHECK: define void @f_large(%struct.large* noalias sret %agg.result, %struct.large* %x)
+// CHECK-LABEL: define void @f_large(%struct.large* noalias sret %agg.result, %struct.large* %x)
struct large f_large(struct large x) {
x.a += *x.b;
x.b = 0;
@@ -62,7 +62,7 @@ struct reg {
int a, b;
};
-// CHECK: define i64 @f_reg(i64 %x.coerce)
+// CHECK-LABEL: define i64 @f_reg(i64 %x.coerce)
struct reg f_reg(struct reg x) {
x.a += x.b;
return x;
@@ -74,7 +74,7 @@ struct mixed {
float b;
};
-// CHECK: define inreg %struct.mixed @f_mixed(i32 inreg %x.coerce0, float inreg %x.coerce1)
+// CHECK-LABEL: define inreg %struct.mixed @f_mixed(i32 inreg %x.coerce0, float inreg %x.coerce1)
struct mixed f_mixed(struct mixed x) {
x.a += 1;
return x;
@@ -100,7 +100,7 @@ struct tiny {
char a;
};
-// CHECK: define i64 @f_tiny(i64 %x.coerce)
+// CHECK-LABEL: define i64 @f_tiny(i64 %x.coerce)
// CHECK: %[[HB:[^ ]+]] = lshr i64 %x.coerce, 56
// CHECK: = trunc i64 %[[HB]] to i8
struct tiny f_tiny(struct tiny x) {
@@ -108,7 +108,7 @@ struct tiny f_tiny(struct tiny x) {
return x;
}
-// CHECK: define void @call_tiny()
+// CHECK-LABEL: define void @call_tiny()
// CHECK: %[[XV:[^ ]+]] = zext i8 %{{[^ ]+}} to i64
// CHECK: %[[HB:[^ ]+]] = shl i64 %[[XV]], 56
// CHECK: = call i64 @f_tiny(i64 %[[HB]])
@@ -117,7 +117,7 @@ void call_tiny() {
f_tiny(x);
}
-// CHECK: define signext i32 @f_variable(i8* %f, ...)
+// CHECK-LABEL: define signext i32 @f_variable(i8* %f, ...)
// CHECK: %ap = alloca i8*
// CHECK: call void @llvm.va_start
//
OpenPOWER on IntegriCloud