diff options
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r-- | clang/test/CodeGenCXX/bitfield-layout.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/class-layout.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/copy-constructor-synthesis.cpp | 12 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/pragma-pack-3.cpp | 3 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/vtable-layout-abi-examples.cpp | 2 |
5 files changed, 9 insertions, 12 deletions
diff --git a/clang/test/CodeGenCXX/bitfield-layout.cpp b/clang/test/CodeGenCXX/bitfield-layout.cpp index 646300a7d1c..46f41111a1d 100644 --- a/clang/test/CodeGenCXX/bitfield-layout.cpp +++ b/clang/test/CodeGenCXX/bitfield-layout.cpp @@ -12,7 +12,7 @@ union Test2 { int : 6; } t2; -// CHECK-LP64: %union.Test3 = type { [2 x i8] } +// CHECK-LP64: %union.Test3 = type { i16 } union Test3 { int : 9; } t3; diff --git a/clang/test/CodeGenCXX/class-layout.cpp b/clang/test/CodeGenCXX/class-layout.cpp index 21e1a2b40f0..1f6212949fd 100644 --- a/clang/test/CodeGenCXX/class-layout.cpp +++ b/clang/test/CodeGenCXX/class-layout.cpp @@ -39,7 +39,7 @@ namespace Test5 { char a; }; - // CHECK: %"struct.Test5::B" = type { [9 x i8], i8, i8, [5 x i8] } + // CHECK: %"struct.Test5::B" = type { %"struct.Test5::A.base", i8, i8, [5 x i8] } struct B : A { char b : 1; char c; diff --git a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp index c8b265ca2d1..ab3615300d9 100644 --- a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp +++ b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp @@ -139,12 +139,10 @@ void f(B b1) { // CHECK: define linkonce_odr [[A:%.*]]* @_ZN12rdar138169401AaSERKS0_( // CHECK: [[THIS:%.*]] = load [[A]]** // CHECK-NEXT: [[T0:%.*]] = getelementptr inbounds [[A]]* [[THIS]], i32 0, i32 1 -// CHECK-NEXT: [[T1:%.*]] = bitcast [2 x i8]* [[T0]] to i16* // CHECK-NEXT: [[OTHER:%.*]] = load [[A]]** // CHECK-NEXT: [[T2:%.*]] = getelementptr inbounds [[A]]* [[OTHER]], i32 0, i32 1 -// CHECK-NEXT: [[T3:%.*]] = bitcast [2 x i8]* [[T2]] to i16* -// CHECK-NEXT: [[T4:%.*]] = bitcast i16* [[T1]] to i8* -// CHECK-NEXT: [[T5:%.*]] = bitcast i16* [[T3]] to i8* +// CHECK-NEXT: [[T4:%.*]] = bitcast i16* [[T0]] to i8* +// CHECK-NEXT: [[T5:%.*]] = bitcast i16* [[T2]] to i8* // CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* [[T4]], i8* [[T5]], i64 8, i32 8, i1 false) // CHECK-NEXT: ret [[A]]* [[THIS]] @@ -153,12 +151,10 @@ void f(B b1) { // CHECK-NEXT: [[T0:%.*]] = bitcast [[A]]* [[THIS]] to i8*** // CHECK-NEXT: store i8** getelementptr inbounds ([4 x i8*]* @_ZTVN12rdar138169401AE, i64 0, i64 2), i8*** [[T0]] // CHECK-NEXT: [[T0:%.*]] = getelementptr inbounds [[A]]* [[THIS]], i32 0, i32 1 -// CHECK-NEXT: [[T1:%.*]] = bitcast [2 x i8]* [[T0]] to i16* // CHECK-NEXT: [[OTHER:%.*]] = load [[A]]** // CHECK-NEXT: [[T2:%.*]] = getelementptr inbounds [[A]]* [[OTHER]], i32 0, i32 1 -// CHECK-NEXT: [[T3:%.*]] = bitcast [2 x i8]* [[T2]] to i16* -// CHECK-NEXT: [[T4:%.*]] = bitcast i16* [[T1]] to i8* -// CHECK-NEXT: [[T5:%.*]] = bitcast i16* [[T3]] to i8* +// CHECK-NEXT: [[T4:%.*]] = bitcast i16* [[T0]] to i8* +// CHECK-NEXT: [[T5:%.*]] = bitcast i16* [[T2]] to i8* // CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* [[T4]], i8* [[T5]], i64 8, i32 8, i1 false) // CHECK-NEXT: ret void diff --git a/clang/test/CodeGenCXX/pragma-pack-3.cpp b/clang/test/CodeGenCXX/pragma-pack-3.cpp index e244ef55df3..49509a5b2a8 100644 --- a/clang/test/CodeGenCXX/pragma-pack-3.cpp +++ b/clang/test/CodeGenCXX/pragma-pack-3.cpp @@ -11,7 +11,8 @@ struct Derived_1 : virtual Base #pragma pack(1) struct Derived_2 : Derived_1 { - // CHECK: %struct.Derived_2 = type <{ [5 x i8], %struct.Base }> + // CHECK: %struct.Derived_2 = type { %struct.Derived_1.base, %struct.Base } + // CHECK: %struct.Derived_1.base = type <{ i32 (...)**, i8 }> }; Derived_2 x; diff --git a/clang/test/CodeGenCXX/vtable-layout-abi-examples.cpp b/clang/test/CodeGenCXX/vtable-layout-abi-examples.cpp index 8f084a9c5b7..b8ac6f512b4 100644 --- a/clang/test/CodeGenCXX/vtable-layout-abi-examples.cpp +++ b/clang/test/CodeGenCXX/vtable-layout-abi-examples.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm-only -fdump-vtable-layouts > %t 2>&1 +// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm-only -fdump-vtable-layouts > %t 2>/dev/null // RUN: FileCheck --check-prefix=CHECK-1 %s < %t // RUN: FileCheck --check-prefix=CHECK-2 %s < %t // RUN: FileCheck --check-prefix=CHECK-3 %s < %t |