diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 19:53:26 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 19:53:26 +0000 |
| commit | c4d672a49d5e0b92ca5fd9d898fc8b1a12ee5288 (patch) | |
| tree | e415c47c9b1708cd128a4006c54d7722688fb874 /clang/test | |
| parent | 88bd8629b2b897dfe782c88c133b5311ba83ee2e (diff) | |
| download | bcm5719-llvm-c4d672a49d5e0b92ca5fd9d898fc8b1a12ee5288.tar.gz bcm5719-llvm-c4d672a49d5e0b92ca5fd9d898fc8b1a12ee5288.zip | |
Misc test cleanups.
* tbaa-struct.cpp always has a 64 bit pointer.
* f32:32:32, f64:64:64 and f128:128:128 are defaults, don't assume they are
printed.
llvm-svn: 197415
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/ppc64-align-long-double.c | 2 | ||||
| -rw-r--r-- | clang/test/CodeGen/tbaa-struct.cpp | 11 | ||||
| -rw-r--r-- | clang/test/CodeGen/volatile-complex.c | 4 |
3 files changed, 6 insertions, 11 deletions
diff --git a/clang/test/CodeGen/ppc64-align-long-double.c b/clang/test/CodeGen/ppc64-align-long-double.c index f4f30adbc06..6d07f7039da 100644 --- a/clang/test/CodeGen/ppc64-align-long-double.c +++ b/clang/test/CodeGen/ppc64-align-long-double.c @@ -1,8 +1,6 @@ // REQUIRES: powerpc-registered-target // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s -// CHECK: -f128:128:128- - struct S { double a; long double b; diff --git a/clang/test/CodeGen/tbaa-struct.cpp b/clang/test/CodeGen/tbaa-struct.cpp index f8bd1245cee..71d3ed11a17 100644 --- a/clang/test/CodeGen/tbaa-struct.cpp +++ b/clang/test/CodeGen/tbaa-struct.cpp @@ -12,8 +12,7 @@ void copy(struct A *a, struct A *b) { *a = *b; } -// CHECK: target datalayout = "{{.*}}p:[[P:64|32]] -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 16, i32 4, i1 false), !tbaa.struct [[TS:!.*]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 16, i32 4, i1 false), !tbaa.struct [[TS:!.*]] struct B { char c1; @@ -25,7 +24,7 @@ void copy2(struct B *a, struct B *b) { *a = *b; } -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 24, i32 4, i1 false), !tbaa.struct [[TS2:!.*]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 24, i32 4, i1 false), !tbaa.struct [[TS2:!.*]] typedef _Complex int T2; typedef _Complex char T5; @@ -37,7 +36,7 @@ void copy3 (T1 *a, T1 *b) { *a = *b; } -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 12, i32 4, i1 false), !tbaa.struct [[TS3:!.*]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 12, i32 4, i1 false), !tbaa.struct [[TS3:!.*]] // Make sure that zero-length bitfield works. #define ATTR __attribute__ ((ms_struct)) @@ -50,7 +49,7 @@ struct five { void copy4(struct five *a, struct five *b) { *a = *b; } -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 3, i32 1, i1 false), !tbaa.struct [[TS4:!.*]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 3, i32 1, i1 false), !tbaa.struct [[TS4:!.*]] struct six { char a; @@ -61,7 +60,7 @@ struct six { void copy5(struct six *a, struct six *b) { *a = *b; } -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 6, i32 1, i1 false), !tbaa.struct [[TS5:!.*]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 6, i32 1, i1 false), !tbaa.struct [[TS5:!.*]] // CHECK: [[TS]] = metadata !{i64 0, i64 2, metadata !{{.*}}, i64 4, i64 4, metadata !{{.*}}, i64 8, i64 1, metadata !{{.*}}, i64 12, i64 4, metadata !{{.*}}} // CHECK: [[CHAR:!.*]] = metadata !{metadata !"omnipotent char", metadata !{{.*}}} diff --git a/clang/test/CodeGen/volatile-complex.c b/clang/test/CodeGen/volatile-complex.c index 71e5db6f5cf..b47f6369625 100644 --- a/clang/test/CodeGen/volatile-complex.c +++ b/clang/test/CodeGen/volatile-complex.c @@ -5,9 +5,7 @@ // // This test assumes that floats are 32-bit aligned and doubles are // 64-bit aligned, and uses x86-64 as a target that should have this -// datalayout. - -// CHECK: target datalayout = "{{.*}}f32:32:32-f64:64:64{{.*}}" +// property. volatile _Complex float cf; volatile _Complex double cd; |

