summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct-init.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-28 00:25:28 +0000
committerEric Christopher <echristo@apple.com>2011-07-28 00:25:28 +0000
commit1137086e1920558ee6c7c501617246079f3657de (patch)
tree6732fa4c08fd9596e1555d049a903b70746e7738 /clang/test/CodeGen/struct-init.c
parent9c8dece1b64fc89b8e71e33147b5541b51d7f32c (diff)
downloadbcm5719-llvm-1137086e1920558ee6c7c501617246079f3657de.tar.gz
bcm5719-llvm-1137086e1920558ee6c7c501617246079f3657de.zip
Fix this up for clang codegen versus llvm-gcc.
llvm-svn: 136308
Diffstat (limited to 'clang/test/CodeGen/struct-init.c')
-rw-r--r--clang/test/CodeGen/struct-init.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/test/CodeGen/struct-init.c b/clang/test/CodeGen/struct-init.c
index 8a605c1b67c..9bc46ec05f0 100644
--- a/clang/test/CodeGen/struct-init.c
+++ b/clang/test/CodeGen/struct-init.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang -S -arch armv7 %s -emit-llvm -o - | FileCheck %s
typedef struct _zend_ini_entry zend_ini_entry;
struct _zend_ini_entry {
@@ -23,17 +23,15 @@ typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
// rdar://8183908
-typedef struct __simd64_uint32_t {
- __neon_uint32x2_t val;
-} uint32x2_t;
+typedef unsigned int uint32_t;
+typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
void foo() {
const uint32x2_t signBit = { (uint2) 0x80000000 };
}
-// CHECK: %struct.fp_struct_foo = type { void (i32)* }
+// CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
struct fp_struct_bar { int a; };
struct fp_struct_foo {
void (*FP)(struct fp_struct_bar);
} G;
-
OpenPOWER on IntegriCloud