Home | History | Annotate | Download | only in CodeGen
      1 // REQUIRES: arm-registered-target
      2 // RUN: %clang_cc1 -S -triple armv7-apple-darwin -target-feature +neon %s -emit-llvm -o - | FileCheck %s
      3 
      4 typedef struct _zend_ini_entry zend_ini_entry;
      5 struct _zend_ini_entry {
      6   void *mh_arg1;
      7 };
      8 
      9 char a;
     10 
     11 const zend_ini_entry ini_entries[] = {
     12   {  ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
     13 };
     14 
     15 // PR7564
     16 struct GLGENH {
     17   int : 27;
     18   int EMHJAA : 1;
     19 };
     20 
     21 struct GLGENH ABHFBF = {1};
     22 
     23 typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
     24 typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
     25 
     26 // rdar://8183908
     27 typedef unsigned int uint32_t;
     28 typedef __attribute__((neon_vector_type(2)))  uint32_t uint32x2_t;
     29 void foo() {
     30     const uint32x2_t signBit = { (uint2) 0x80000000 };
     31 }
     32 
     33 // CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
     34 struct fp_struct_bar { int a; };
     35 
     36 struct fp_struct_foo {
     37   void (*FP)(struct fp_struct_bar);
     38 } G;
     39