[llvm-branch-commits] [cfe-branch] r134801 - in /cfe/branches/type-system-rewrite/test: CodeGen/ CodeGenCXX/
Chris Lattner
sabre at nondot.org
Fri Jul 8 23:39:04 PDT 2011
Author: lattner
Date: Sat Jul 9 01:39:04 2011
New Revision: 134801
URL: http://llvm.org/viewvc/llvm-project?rev=134801&view=rev
Log:
update the rest of the tests due to expected changes, down to only two test failures.
Modified:
cfe/branches/type-system-rewrite/test/CodeGen/blocksignature.c
cfe/branches/type-system-rewrite/test/CodeGen/blockstret.c
cfe/branches/type-system-rewrite/test/CodeGen/const-arithmetic.c
cfe/branches/type-system-rewrite/test/CodeGen/decl.c
cfe/branches/type-system-rewrite/test/CodeGen/designated-initializers.c
cfe/branches/type-system-rewrite/test/CodeGen/flexible-array-init.c
cfe/branches/type-system-rewrite/test/CodeGen/global-init.c
cfe/branches/type-system-rewrite/test/CodeGen/ms-anonymous-struct.c
cfe/branches/type-system-rewrite/test/CodeGen/packed-union.c
cfe/branches/type-system-rewrite/test/CodeGen/pragma-pack-3.c
cfe/branches/type-system-rewrite/test/CodeGen/regparm.c
cfe/branches/type-system-rewrite/test/CodeGen/transparent-union.c
cfe/branches/type-system-rewrite/test/CodeGen/trapv.c
cfe/branches/type-system-rewrite/test/CodeGen/union-init2.c
cfe/branches/type-system-rewrite/test/CodeGen/volatile-1.c
cfe/branches/type-system-rewrite/test/CodeGen/volatile-2.c
cfe/branches/type-system-rewrite/test/CodeGen/x86_32-arguments-darwin.c
cfe/branches/type-system-rewrite/test/CodeGen/x86_64-arguments.c
cfe/branches/type-system-rewrite/test/CodeGenCXX/blocks.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/class-layout.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/global-init.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/references.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/static-init-3.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/virt-call-offsets.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-bases.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-functions-incomplete-types.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/volatile-1.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/vtable-pointer-initialization.cpp
cfe/branches/type-system-rewrite/test/CodeGenCXX/x86_32-arguments.cpp
Modified: cfe/branches/type-system-rewrite/test/CodeGen/blocksignature.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/blocksignature.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/blocksignature.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/blocksignature.c Sat Jul 9 01:39:04 2011
@@ -2,13 +2,13 @@
// RUN: %clang_cc1 -fblocks -triple i686-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X32
// X64: @.str = private unnamed_addr constant [6 x i8] c"v8@?0\00"
-// X64: @__block_literal_global = internal constant %1 { i8** @_NSConcreteGlobalBlock, i32 1342177280,
+// X64: @__block_literal_global = internal constant {{.*}} { i8** @_NSConcreteGlobalBlock, i32 1342177280,
// X64: @.str1 = private unnamed_addr constant [12 x i8] c"i16@?0c8f12\00"
// X64: store i32 1073741824, i32*
// X32: [[STR1:@.*]] = private unnamed_addr constant [6 x i8] c"v4@?0\00"
-// X32: @__block_descriptor_tmp = internal constant [[FULL_DESCRIPTOR_T:%.*]] { i32 0, i32 20, i8* getelementptr inbounds ([6 x i8]* [[STR1]], i32 0, i32 0), i8* null }
-// X32: @__block_literal_global = internal constant [[GLOBAL_LITERAL_T:%.*]] { i8** @_NSConcreteGlobalBlock, i32 1342177280, i32 0, i8* bitcast (void (i8*)* @__block_global_{{.*}} to i8*), [[DESCRIPTOR_T:%.*]]* bitcast ([[FULL_DESCRIPTOR_T]]* @__block_descriptor_tmp to {{%.*}}*) }
+// X32: @__block_descriptor_tmp = internal constant [[FULL_DESCRIPTOR_T:.*]] { i32 0, i32 20, i8* getelementptr inbounds ([6 x i8]* [[STR1]], i32 0, i32 0), i8* null }
+// X32: @__block_literal_global = internal constant [[GLOBAL_LITERAL_T:.*]] { i8** @_NSConcreteGlobalBlock, i32 1342177280, i32 0, i8* bitcast (void (i8*)* @__block_global_{{.*}} to i8*), [[DESCRIPTOR_T:%.*]]* bitcast ([[FULL_DESCRIPTOR_T]]* @__block_descriptor_tmp to {{%.*}}*) }
// X32: [[STR2:@.*]] = private unnamed_addr constant [11 x i8] c"i12@?0c4f8\00"
// X32: @__block_descriptor_tmp{{.*}} = internal constant [[FULL_DESCRIPTOR_T]] { i32 0, i32 24, i8* getelementptr inbounds ([11 x i8]* [[STR2]], i32 0, i32 0), i8* null }
// X32: store i32 1073741824, i32*
Modified: cfe/branches/type-system-rewrite/test/CodeGen/blockstret.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/blockstret.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/blockstret.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/blockstret.c Sat Jul 9 01:39:04 2011
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X64
// RUN: %clang_cc1 -fblocks -triple i686-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X32
-// X64: internal constant {{%.*}} { i8** @_NSConcreteGlobalBlock, i32 1879048192
+// X64: internal constant {{.*}} { i8** @_NSConcreteGlobalBlock, i32 1879048192
// X64: store i32 1610612736, i32* %want
// X32: @_NSConcreteGlobalBlock, i32 1879048192, i32 0,
Modified: cfe/branches/type-system-rewrite/test/CodeGen/const-arithmetic.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/const-arithmetic.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/const-arithmetic.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/const-arithmetic.c Sat Jul 9 01:39:04 2011
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
-// CHECK: @g1 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16
-// CHECK: @g2 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16
+// CHECK: @g1 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %"struct.<anonymous>"]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %"struct.<anonymous>"]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16
+// CHECK: @g2 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %"struct.<anonymous>"]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %"struct.<anonymous>"]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16
extern struct { unsigned char a, b; } g0[];
void *g1[] = {g0 + -1, g0 + -23 };
Modified: cfe/branches/type-system-rewrite/test/CodeGen/decl.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/decl.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/decl.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/decl.c Sat Jul 9 01:39:04 2011
@@ -2,8 +2,8 @@
// CHECK: @test1.x = internal constant [12 x i32] [i32 1
// CHECK: @test2.x = internal unnamed_addr constant [13 x i32] [i32 1,
-// CHECK: @test5w = global %0 { i32 2, [4 x i8] undef }
-// CHECK: @test5y = global %union.test5u { double 7.300000e+0{{[0]*}}1 }
+// CHECK: @test5w = global { i32, [4 x i8] } { i32 2, [4 x i8] undef }
+// CHECK: @test5y = global { double } { double 7.300000e+0{{[0]*}}1 }
// CHECK: @test6.x = internal unnamed_addr constant %struct.SelectDest { i8 1, i8 2, i32 3, i32 0 }
Modified: cfe/branches/type-system-rewrite/test/CodeGen/designated-initializers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/designated-initializers.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/designated-initializers.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/designated-initializers.c Sat Jul 9 01:39:04 2011
@@ -5,13 +5,13 @@
int b;
};
-// CHECK: @u = global %union.anon zeroinitializer
+// CHECK: @u = global %"union.<anonymous>" zeroinitializer
union { int i; float f; } u = { };
-// CHECK: @u2 = global %2 { i32 0, [4 x i8] undef }
+// CHECK: @u2 = global { i32, [4 x i8] } { i32 0, [4 x i8] undef }
union { int i; double f; } u2 = { };
-// CHECK: @u3 = global %3 zeroinitializer
+// CHECK: @u3 = global %"union.<anonymous>.1" zeroinitializer
union { double f; int i; } u3 = { };
// CHECK: @b = global [2 x i32] [i32 0, i32 22]
@@ -39,11 +39,11 @@
struct ds ds1 = { { .a = 1 } };
struct ds ds2 = { { .b = 1 } };
struct ds ds3 = { .a = 0 };
-// CHECK: @ds4 = global %struct.ds { %1 { %struct.anon zeroinitializer, i16 0, %struct.anon { i16 1 } } }
+// CHECK: @ds4 = global %struct.ds { %"struct.ds::<anonymous>" { %"struct.ds::<anonymous struct>::<anonymous>" zeroinitializer, i16 0, %"struct.ds::<anonymous struct>::<anonymous>.2" { i16 1 } } }
struct ds ds4 = { .c = 1 };
struct ds ds5 = { { { .a = 0 } }, .b = 1 };
struct ds ds6 = { { .a = 0, .b = 1 } };
-// CHECK: @ds7 = global %struct.ds { %1 { %struct.anon { i16 2 }, i16 3, %struct.anon zeroinitializer } }
+// CHECK: @ds7 = global %struct.ds { %"struct.ds::<anonymous>" { %"struct.ds::<anonymous struct>::<anonymous>" { i16 2 }, i16 3, %"struct.ds::<anonymous struct>::<anonymous>.2" zeroinitializer } }
struct ds ds7 = {
{ {
.a = 1
@@ -59,7 +59,7 @@
.b = 1024,
};
- // CHECK: bitcast %union.anon* %u2
+ // CHECK: bitcast %union.* %u2
// CHECK: call void @llvm.memset
union { int i; float f; } u2 = { };
Modified: cfe/branches/type-system-rewrite/test/CodeGen/flexible-array-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/flexible-array-init.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/flexible-array-init.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/flexible-array-init.c Sat Jul 9 01:39:04 2011
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
struct { int x; int y[]; } a = { 1, 7, 11 };
-// CHECK: @a = global %0 { i32 1, [2 x i32] [i32 7, i32 11] }
+// CHECK: @a = global { i32, [2 x i32] } { i32 1, [2 x i32] [i32 7, i32 11] }
struct { int x; int y[]; } b = { 1, { 13, 15 } };
-// CHECK: @b = global %0 { i32 1, [2 x i32] [i32 13, i32 15] }
+// CHECK: @b = global { i32, [2 x i32] } { i32 1, [2 x i32] [i32 13, i32 15] }
Modified: cfe/branches/type-system-rewrite/test/CodeGen/global-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/global-init.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/global-init.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/global-init.c Sat Jul 9 01:39:04 2011
@@ -32,7 +32,7 @@
// PR6766
-// CHECK: @l = global %0 { [24 x i8] c"f\00\00\00o\00\00\00o\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i32 1 }
+// CHECK: @l = global { [24 x i8], i32 } { [24 x i8] c"f\00\00\00o\00\00\00o\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i32 1 }
typedef __WCHAR_TYPE__ wchar_t;
struct K {
wchar_t L[6];
Modified: cfe/branches/type-system-rewrite/test/CodeGen/ms-anonymous-struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/ms-anonymous-struct.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/ms-anonymous-struct.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/ms-anonymous-struct.c Sat Jul 9 01:39:04 2011
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -fms-extensions -emit-llvm -o - %s | FileCheck %s
+// CHECK: %struct.test = type { i32, %struct.nested2, i32 }
+// CHECK: %struct.nested2 = type { i32, %struct.nested1, i32 }
// CHECK: %struct.nested1 = type { i32, i32 }
typedef struct nested1 {
int a1;
int b1;
} NESTED1;
-// CHECK: %struct.nested2 = type { i32, %struct.nested1, i32 }
struct nested2 {
int a;
NESTED1;
int b;
};
-// CHECK: %struct.test = type { i32, %struct.nested2, i32 }
struct test {
int x;
struct nested2;
Modified: cfe/branches/type-system-rewrite/test/CodeGen/packed-union.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/packed-union.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/packed-union.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/packed-union.c Sat Jul 9 01:39:04 2011
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o %t
-// RUN: grep "struct._attrs = type <{ i32, i8 }>" %t
typedef struct _attrs {
unsigned file_attributes;
unsigned char filename_length;
Modified: cfe/branches/type-system-rewrite/test/CodeGen/pragma-pack-3.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/pragma-pack-3.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/pragma-pack-3.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/pragma-pack-3.c Sat Jul 9 01:39:04 2011
@@ -1,9 +1,7 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X32 %s
-// CHECK-X32: %struct.menu = type <{ i8*, i8, i8 }>
// CHECK-X32: %union.command = type <{ i8*, [2 x i8] }>
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix X64 %s
-// CHECK-X64: %struct.menu = type <{ i8*, i8, i8 }>
// CHECK-X64: %union.command = type <{ i8*, [2 x i8] }>
// <rdar://problem/7184250>
Modified: cfe/branches/type-system-rewrite/test/CodeGen/regparm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/regparm.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/regparm.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/regparm.c Sat Jul 9 01:39:04 2011
@@ -20,7 +20,7 @@
int
main(void) {
- // CHECK: call void @reduced(i8 signext inreg 0, {{.*}} %struct.foo* inreg null
+ // CHECK: call void @reduced(i8 signext inreg 0, {{.*}} %"struct.<anonymous>"* inreg null
reduced(0, 0.0, 0, 0.0, 0);
// CHECK: call x86_stdcallcc void {{.*}}(i32 inreg 1, i32 inreg 2)
bar(1,2);
Modified: cfe/branches/type-system-rewrite/test/CodeGen/transparent-union.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/transparent-union.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/transparent-union.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/transparent-union.c Sat Jul 9 01:39:04 2011
@@ -11,7 +11,7 @@
void f0(transp_t0 obj);
// CHECK: define void @f1_0(i32* %a0)
-// CHECK: call void @f0(%union.transp_t0* byval align 4 %{{.*}})
+// CHECK: call void @f0(%"union.<anonymous>"* byval align 4 %{{.*}})
// CHECK: call void %{{.*}}(i8* %{{[a-z0-9]*}})
// CHECK: }
void f1_0(int *a0) {
Modified: cfe/branches/type-system-rewrite/test/CodeGen/trapv.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/trapv.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/trapv.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/trapv.c Sat Jul 9 01:39:04 2011
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -ftrapv %s -emit-llvm -o - | FileCheck %s
-// CHECK: [[I32O:%.*]] = type { i32, i1 }
-
unsigned int ui, uj, uk;
int i, j, k;
@@ -16,9 +14,9 @@
// CHECK: [[T1:%.*]] = load i32* @j
// CHECK-NEXT: [[T2:%.*]] = load i32* @k
- // CHECK-NEXT: [[T3:%.*]] = call [[I32O]] @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 [[T2]])
- // CHECK-NEXT: [[T4:%.*]] = extractvalue [[I32O]] [[T3]], 0
- // CHECK-NEXT: [[T5:%.*]] = extractvalue [[I32O]] [[T3]], 1
+ // CHECK-NEXT: [[T3:%.*]] = call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 [[T2]])
+ // CHECK-NEXT: [[T4:%.*]] = extractvalue { i32, i1 } [[T3]], 0
+ // CHECK-NEXT: [[T5:%.*]] = extractvalue { i32, i1 } [[T3]], 1
// CHECK-NEXT: br i1 [[T5]]
// CHECK: call void @llvm.trap()
i = j + k;
@@ -30,9 +28,9 @@
opaque(i++);
// CHECK: [[T1:%.*]] = load i32* @i
- // CHECK-NEXT: [[T2:%.*]] = call [[I32O]] @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 1)
- // CHECK-NEXT: [[T3:%.*]] = extractvalue [[I32O]] [[T2]], 0
- // CHECK-NEXT: [[T4:%.*]] = extractvalue [[I32O]] [[T2]], 1
+ // CHECK-NEXT: [[T2:%.*]] = call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 1)
+ // CHECK-NEXT: [[T3:%.*]] = extractvalue { i32, i1 } [[T2]], 0
+ // CHECK-NEXT: [[T4:%.*]] = extractvalue { i32, i1 } [[T2]], 1
// CHECK-NEXT: br i1 [[T4]]
// CHECK: call void @llvm.trap()
}
@@ -43,9 +41,9 @@
opaque(++i);
// CHECK: [[T1:%.*]] = load i32* @i
- // CHECK-NEXT: [[T2:%.*]] = call [[I32O]] @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 1)
- // CHECK-NEXT: [[T3:%.*]] = extractvalue [[I32O]] [[T2]], 0
- // CHECK-NEXT: [[T4:%.*]] = extractvalue [[I32O]] [[T2]], 1
+ // CHECK-NEXT: [[T2:%.*]] = call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 [[T1]], i32 1)
+ // CHECK-NEXT: [[T3:%.*]] = extractvalue { i32, i1 } [[T2]], 0
+ // CHECK-NEXT: [[T4:%.*]] = extractvalue { i32, i1 } [[T2]], 1
// CHECK-NEXT: br i1 [[T4]]
// CHECK: call void @llvm.trap()
}
Modified: cfe/branches/type-system-rewrite/test/CodeGen/union-init2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/union-init2.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/union-init2.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/union-init2.c Sat Jul 9 01:39:04 2011
@@ -1,11 +1,11 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -triple i686-pc-linux-gnu | FileCheck %s
// Make sure we generate something sane instead of a ptrtoint
-// CHECK: bitcast (%0* @r to %union.x*), [4 x i8] undef
+// CHECK: bitcast ({ %union.x*, [4 x i8] }* @r to %union.x*), [4 x i8] undef
union x {long long b;union x* a;} r = {.a = &r};
-// CHECK: global %1 { [3 x i8] zeroinitializer, [5 x i8] undef }
+// CHECK: global { [3 x i8], [5 x i8] } { [3 x i8] zeroinitializer, [5 x i8] undef }
union z {
char a[3];
long long b;
Modified: cfe/branches/type-system-rewrite/test/CodeGen/volatile-1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/volatile-1.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/volatile-1.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/volatile-1.c Sat Jul 9 01:39:04 2011
@@ -4,7 +4,7 @@
volatile int i, j, k;
volatile int ar[5];
volatile char c;
-// CHECK: @ci = common global [[CINT:%.*]] zeroinitializer
+// CHECK: @ci = common global [[CINT:.*]] zeroinitializer
volatile _Complex int ci;
volatile struct S {
#ifdef __cplusplus
Modified: cfe/branches/type-system-rewrite/test/CodeGen/volatile-2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/volatile-2.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/volatile-2.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/volatile-2.c Sat Jul 9 01:39:04 2011
@@ -3,8 +3,8 @@
void test0() {
// CHECK: define void @test0()
// CHECK: [[F:%.*]] = alloca float
- // CHECK-NEXT: [[REAL:%.*]] = volatile load float* getelementptr inbounds ({{%.*}} @test0_v, i32 0, i32 0)
- // CHECK-NEXT: volatile load float* getelementptr inbounds ({{%.*}} @test0_v, i32 0, i32 1)
+ // CHECK-NEXT: [[REAL:%.*]] = volatile load float* getelementptr inbounds ({ float, float }* @test0_v, i32 0, i32 0)
+ // CHECK-NEXT: volatile load float* getelementptr inbounds ({{.*}} @test0_v, i32 0, i32 1)
// CHECK-NEXT: store float [[REAL]], float* [[F]], align 4
// CHECK-NEXT: ret void
extern volatile _Complex float test0_v;
@@ -13,10 +13,10 @@
void test1() {
// CHECK: define void @test1()
- // CHECK: [[REAL:%.*]] = volatile load float* getelementptr inbounds ({{%.*}} @test1_v, i32 0, i32 0)
- // CHECK-NEXT: [[IMAG:%.*]] = volatile load float* getelementptr inbounds ({{%.*}} @test1_v, i32 0, i32 1)
- // CHECK-NEXT: volatile store float [[REAL]], float* getelementptr inbounds ({{%.*}} @test1_v, i32 0, i32 0)
- // CHECK-NEXT: volatile store float [[IMAG]], float* getelementptr inbounds ({{%.*}} @test1_v, i32 0, i32 1)
+ // CHECK: [[REAL:%.*]] = volatile load float* getelementptr inbounds ({{.*}} @test1_v, i32 0, i32 0)
+ // CHECK-NEXT: [[IMAG:%.*]] = volatile load float* getelementptr inbounds ({{.*}} @test1_v, i32 0, i32 1)
+ // CHECK-NEXT: volatile store float [[REAL]], float* getelementptr inbounds ({{.*}} @test1_v, i32 0, i32 0)
+ // CHECK-NEXT: volatile store float [[IMAG]], float* getelementptr inbounds ({{.*}} @test1_v, i32 0, i32 1)
// CHECK-NEXT: ret void
extern volatile _Complex float test1_v;
test1_v = test1_v;
Modified: cfe/branches/type-system-rewrite/test/CodeGen/x86_32-arguments-darwin.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/x86_32-arguments-darwin.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/x86_32-arguments-darwin.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/x86_32-arguments-darwin.c Sat Jul 9 01:39:04 2011
@@ -232,7 +232,7 @@
// CHECK: i8 signext %a0, %struct.s56_0* byval align 4 %a1,
// CHECK: x86_mmx %a2.coerce, %struct.s56_1* byval align 4,
// CHECK: i64 %a4.coerce, %struct.s56_2* byval align 4,
-// CHECK: <4 x i32> %a6, %struct.s39* byval align 16 %a7,
+// CHECK: <4 x i32> %a6, %struct.s56_3* byval align 16 %a7,
// CHECK: <2 x double> %a8, %struct.s56_4* byval align 16 %a9,
// CHECK: <8 x i32> %a10, %struct.s56_5* byval align 4,
// CHECK: <4 x double> %a12, %struct.s56_6* byval align 4)
@@ -241,7 +241,7 @@
// CHECK: i32 %{{[^ ]*}}, %struct.s56_0* byval align 4 %{{[^ ]*}},
// CHECK: x86_mmx %{{[^ ]*}}, %struct.s56_1* byval align 4 %{{[^ ]*}},
// CHECK: i64 %{{[^ ]*}}, %struct.s56_2* byval align 4 %{{[^ ]*}},
-// CHECK: <4 x i32> %{{[^ ]*}}, %struct.s39* byval align 16 %{{[^ ]*}},
+// CHECK: <4 x i32> %{{[^ ]*}}, %struct.s56_3* byval align 16 %{{[^ ]*}},
// CHECK: <2 x double> %{{[^ ]*}}, %struct.s56_4* byval align 16 %{{[^ ]*}},
// CHECK: <8 x i32> {{[^ ]*}}, %struct.s56_5* byval align 4 %{{[^ ]*}},
// CHECK: <4 x double> {{[^ ]*}}, %struct.s56_6* byval align 4 %{{[^ ]*}})
Modified: cfe/branches/type-system-rewrite/test/CodeGen/x86_64-arguments.c
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGen/x86_64-arguments.c?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGen/x86_64-arguments.c (original)
+++ cfe/branches/type-system-rewrite/test/CodeGen/x86_64-arguments.c Sat Jul 9 01:39:04 2011
@@ -42,8 +42,8 @@
// Test merging/passing of upper eightbyte with X87 class.
//
-// CHECK: define void @f8_1(%struct.s19* sret %agg.result)
-// CHECK: define void @f8_2(%struct.s19* byval align 16 %a0)
+// CHECK: define void @f8_1(%union.u8* sret %agg.result)
+// CHECK: define void @f8_2(%union.u8* byval align 16 %a0)
union u8 {
long double a;
int b;
@@ -58,7 +58,7 @@
struct s10 { int a; int b; int : 0; };
void f10(struct s10 a0) {}
-// CHECK: define void @f11(%struct.s19* sret %agg.result)
+// CHECK: define void @f11(%"union.<anonymous>"* sret %agg.result)
union { long double a; float b; } f11() { while (1) {} }
// CHECK: define i32 @f12_0()
@@ -147,7 +147,7 @@
struct f23S f24(struct f23S *X, struct f24s *P2) {
return *X;
- // CHECK: define %struct.f24s @f24(%struct.f23S* %X, %struct.f24s* %P2)
+ // CHECK: define { i64, i32 } @f24(%struct.f23S* %X, %struct.f24s* %P2)
}
// rdar://8248065
@@ -169,7 +169,7 @@
};
struct foo26 f26(struct foo26 *P) {
- // CHECK: define %struct.foo26 @f26(%struct.foo26* %P)
+ // CHECK: define { i32*, float* } @f26(%struct.foo26* %P)
return *P;
}
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/blocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/blocks.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/blocks.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/blocks.cpp Sat Jul 9 01:39:04 2011
@@ -31,7 +31,7 @@
// ...unless they have mutable fields...
// CHECK: define void @_ZN5test15test3Ev()
- // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:%.*]],
+ // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
// CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*
// CHECK: store void ()* [[T0]], void ()** @out
struct mut { mutable int x; };
@@ -43,7 +43,7 @@
// ...or non-trivial destructors...
// CHECK: define void @_ZN5test15test4Ev()
// CHECK: [[OBJ:%.*]] = alloca
- // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:%.*]],
+ // CHECK: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
// CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*
// CHECK: store void ()* [[T0]], void ()** @out
struct scope { int x; ~scope(); };
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/class-layout.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/class-layout.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/class-layout.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/class-layout.cpp Sat Jul 9 01:39:04 2011
@@ -20,8 +20,8 @@
namespace Test4 {
// Test from PR5589.
- // CHECK: %"struct.Test4::A" = type { i32, i8, float }
// CHECK: %"struct.Test4::B" = type { %"struct.Test4::A", i16, double }
+ // CHECK: %"struct.Test4::A" = type { i32, i8, float }
struct A {
int a;
char c;
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/global-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/global-init.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/global-init.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/global-init.cpp Sat Jul 9 01:39:04 2011
@@ -21,21 +21,21 @@
// PR6205: The casts should not require global initializers
// CHECK: @_ZN6PR59741cE = external global %"struct.PR5974::C"
// CHECK: @_ZN6PR59741aE = global %"struct.PR5974::A"* getelementptr inbounds (%"struct.PR5974::C"* @_ZN6PR59741cE, i32 0, i32 0)
-// CHECK: @_ZN6PR59741bE = global %"struct.PR5974::A"* bitcast (i8* getelementptr (i8* bitcast (%"struct.PR5974::C"* @_ZN6PR59741cE to i8*), i64 4) to %"struct.PR5974::A"*), align 8
+// CHECK: @_ZN6PR59741bE = global %"struct.PR5974::B"* bitcast (i8* getelementptr (i8* bitcast (%"struct.PR5974::C"* @_ZN6PR59741cE to i8*), i64 4) to %"struct.PR5974::B"*), align 8
// CHECK: call void @_ZN1AC1Ev(%struct.A* @a)
// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.A*)* @_ZN1AD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.A* @a, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
A a;
-// CHECK: call void @_ZN1BC1Ev(%struct.A* @b)
-// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.A*)* @_ZN1BD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.A* @b, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
+// CHECK: call void @_ZN1BC1Ev(%struct.B* @b)
+// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.B*)* @_ZN1BD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.B* @b, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
B b;
// PR6205: this should not require a global initializer
// CHECK-NOT: call void @_ZN1CC1Ev(%struct.C* @c)
C c;
-// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.A*)* @_ZN1DD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.A* @d, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
+// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.D*)* @_ZN1DD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.D* @d, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*))
D d;
// <rdar://problem/7458115>
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/references.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/references.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/references.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/references.cpp Sat Jul 9 01:39:04 2011
@@ -235,7 +235,7 @@
};
// CHECK: define internal void @__cxx_global_var_init
-// CHECK: call void @_ZN2N31AC1Ei(%"class.N2::X"* @_ZGRN2N35sA123E, i32 123)
+// CHECK: call void @_ZN2N31AC1Ei(%"struct.N3::A"* @_ZGRN2N35sA123E, i32 123)
// CHECK: call i32 @__cxa_atexit
// CHECK: ret void
const A &sA123 = A(123);
@@ -250,7 +250,7 @@
void f() {
// CHECK: define void @_ZN2N41fEv
- // CHECK: call void @_ZN2N41AC1Ev(%"class.N2::X"* @_ZGRZN2N41fEvE2ar)
+ // CHECK: call void @_ZN2N41AC1Ev(%"struct.N4::A"* @_ZGRZN2N41fEvE2ar)
// CHECK: call i32 @__cxa_atexit
// CHECK: ret void
static const A& ar = A();
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/static-init-3.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/static-init-3.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/static-init-3.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/static-init-3.cpp Sat Jul 9 01:39:04 2011
@@ -16,8 +16,8 @@
}
};
-// CHECK: @_ZN2X1I2X2I1BEE8instanceE = weak_odr global %struct.X0* null, align 8
-// CHECJ: @_ZN2X1I2X2I1AEE8instanceE = weak_odr global %struct.X0* null, align 8
+// CHECK: @_ZN2X1I2X2I1BEE8instanceE = weak_odr global %struct.X2* null, align 8
+// CHECJ: @_ZN2X1I2X2I1AEE8instanceE = weak_odr global %struct.X2* null, align 8
template<class T> T & X1<T>::instance = X1<T>::get();
class A { };
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/virt-call-offsets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/virt-call-offsets.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/virt-call-offsets.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/virt-call-offsets.cpp Sat Jul 9 01:39:04 2011
@@ -5,4 +5,4 @@
struct C : B { virtual void a(); };
void (C::*x)() = &C::a;
-// CHECK: @x = global %0 { i{{[0-9]+}} 1, i{{[0-9]+}} 0 }
+// CHECK: @x = global { i64, i64 } { i{{[0-9]+}} 1, i{{[0-9]+}} 0 }
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-bases.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-bases.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-bases.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-bases.cpp Sat Jul 9 01:39:04 2011
@@ -20,8 +20,8 @@
C(bool);
};
-// CHECK: define void @_ZN1CC1Eb(%struct.B* %this, i1 zeroext) unnamed_addr
-// CHECK: define void @_ZN1CC2Eb(%struct.B* %this, i8** %vtt, i1 zeroext) unnamed_addr
+// CHECK: define void @_ZN1CC1Eb(%struct.C* %this, i1 zeroext) unnamed_addr
+// CHECK: define void @_ZN1CC2Eb(%struct.C* %this, i8** %vtt, i1 zeroext) unnamed_addr
C::C(bool) { }
// PR6251
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-functions-incomplete-types.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-functions-incomplete-types.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-functions-incomplete-types.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/virtual-functions-incomplete-types.cpp Sat Jul 9 01:39:04 2011
@@ -9,7 +9,7 @@
void B::f() { }
-// CHECK: define i32 @_ZN1D1gEv(%struct.B* %this)
+// CHECK: define i32 @_ZN1D1gEv(%struct.D* %this)
// CHECK: declare void @_ZN1B1gEv()
struct C;
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/volatile-1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/volatile-1.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/volatile-1.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/volatile-1.cpp Sat Jul 9 01:39:04 2011
@@ -4,7 +4,7 @@
volatile int i, j, k;
volatile int ar[5];
volatile char c;
-// CHECK: @ci = global [[CINT:%.*]] zeroinitializer
+// CHECK: @ci = global [[CINT:.*]] zeroinitializer
volatile _Complex int ci;
volatile struct S {
#ifdef __cplusplus
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/vtable-pointer-initialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/vtable-pointer-initialization.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/vtable-pointer-initialization.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/vtable-pointer-initialization.cpp Sat Jul 9 01:39:04 2011
@@ -41,16 +41,16 @@
void f() { B b; }
-// CHECK: define linkonce_odr void @_ZN1BC1Ev(%struct.A* %this) unnamed_addr
+// CHECK: define linkonce_odr void @_ZN1BC1Ev(%struct.B* %this) unnamed_addr
// CHECK: call void @_ZN1BC2Ev(
-// CHECK: define linkonce_odr void @_ZN1BD1Ev(%struct.A* %this) unnamed_addr
+// CHECK: define linkonce_odr void @_ZN1BD1Ev(%struct.B* %this) unnamed_addr
// CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2)
// CHECK: call void @_ZN5FieldD1Ev(
// CHECK: call void @_ZN4BaseD2Ev(
// CHECK: ret void
-// CHECK: define linkonce_odr void @_ZN1BC2Ev(%struct.A* %this) unnamed_addr
+// CHECK: define linkonce_odr void @_ZN1BC2Ev(%struct.B* %this) unnamed_addr
// CHECK: call void @_ZN4BaseC2Ev(
// CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1B, i64 0, i64 2)
// CHECK: call void @_ZN5FieldC1Ev
Modified: cfe/branches/type-system-rewrite/test/CodeGenCXX/x86_32-arguments.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/test/CodeGenCXX/x86_32-arguments.cpp?rev=134801&r1=134800&r2=134801&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/test/CodeGenCXX/x86_32-arguments.cpp (original)
+++ cfe/branches/type-system-rewrite/test/CodeGenCXX/x86_32-arguments.cpp Sat Jul 9 01:39:04 2011
@@ -89,7 +89,7 @@
s5 f5() { return s5(); }
// CHECK: define i32 @_Z4f6_0M2s6i(i32 %a)
-// CHECK: define i64 @_Z4f6_1M2s6FivE(%{{.*}} byval align 4)
+// CHECK: define i64 @_Z4f6_1M2s6FivE({ i32, i32 }* byval align 4)
// FIXME: It would be nice to avoid byval on the previous case.
struct s6 {};
typedef int s6::* s6_mdp;
More information about the llvm-branch-commits
mailing list