summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-06-23 19:31:59 +0000
committered <ed@FreeBSD.org>2009-06-23 19:31:59 +0000
commit5c1b5c146f3df07c75174aff06c3bb0968f6857e (patch)
tree2db4127ea6c69f2548de6981658579fddd794448 /test
parent4d74f68bdcfeab629970a41b69b96ac709b08a2b (diff)
downloadFreeBSD-src-5c1b5c146f3df07c75174aff06c3bb0968f6857e.zip
FreeBSD-src-5c1b5c146f3df07c75174aff06c3bb0968f6857e.tar.gz
Import LLVM r73984.
It seems I keep importing sources at very unlucky moments. Let's see what this revision of LLVM does.
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/2007-05-07-PaddingElements.c2
-rw-r--r--test/FrontendC/2008-03-24-BitField-And-Alloca.c2
-rw-r--r--test/FrontendC/2009-02-13-zerosize-union-field-ppc.c14
-rw-r--r--test/FrontendC/2009-02-13-zerosize-union-field.c1
4 files changed, 17 insertions, 2 deletions
diff --git a/test/FrontendC/2007-05-07-PaddingElements.c b/test/FrontendC/2007-05-07-PaddingElements.c
index c0a65f0..9be8850 100644
--- a/test/FrontendC/2007-05-07-PaddingElements.c
+++ b/test/FrontendC/2007-05-07-PaddingElements.c
@@ -1,5 +1,5 @@
// PR 1278
-// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "4 x i8] zeroinitializer"
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {struct.s} | not grep "4 x i8] zeroinitializer"
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "i32 0, i32 2"
struct s {
double d1;
diff --git a/test/FrontendC/2008-03-24-BitField-And-Alloca.c b/test/FrontendC/2008-03-24-BitField-And-Alloca.c
index 7963805..5fac2a9 100644
--- a/test/FrontendC/2008-03-24-BitField-And-Alloca.c
+++ b/test/FrontendC/2008-03-24-BitField-And-Alloca.c
@@ -1,5 +1,5 @@
// RUN: %llvmgcc -O2 -S %s -o - | not grep alloca
-// RUN: %llvmgcc -m32 -S %s -o - | grep store | not grep {align 8}
+// RUN: %llvmgcc -m32 -O2 -S %s -o - | grep store | not grep {align 8}
enum {
PP_C,
diff --git a/test/FrontendC/2009-02-13-zerosize-union-field-ppc.c b/test/FrontendC/2009-02-13-zerosize-union-field-ppc.c
new file mode 100644
index 0000000..947166d
--- /dev/null
+++ b/test/FrontendC/2009-02-13-zerosize-union-field-ppc.c
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 32} | count 3
+// XFAIL: *
+// XTARGET: powerpc
+// Every printf has 'i32 0' for the GEP of the string; no point counting those.
+typedef unsigned int Foo __attribute__((aligned(32)));
+typedef union{Foo:0;}a;
+typedef union{int x; Foo:0;}b;
+extern int printf(const char*, ...);
+main() {
+ printf("%ld\n", sizeof(a));
+ printf("%ld\n", __alignof__(a));
+ printf("%ld\n", sizeof(b));
+ printf("%ld\n", __alignof__(b));
+}
diff --git a/test/FrontendC/2009-02-13-zerosize-union-field.c b/test/FrontendC/2009-02-13-zerosize-union-field.c
index 044cbd5..ad33558 100644
--- a/test/FrontendC/2009-02-13-zerosize-union-field.c
+++ b/test/FrontendC/2009-02-13-zerosize-union-field.c
@@ -1,5 +1,6 @@
// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 1} | count 1
// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 4} | count 2
+// XFAIL: powerpc
// Every printf has 'i32 0' for the GEP of the string; no point counting those.
typedef unsigned int Foo __attribute__((aligned(32)));
typedef union{Foo:0;}a;
OpenPOWER on IntegriCloud