annotate clang/test/CodeGen/struct-init.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: arm-registered-target
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -S -triple armv7-apple-darwin -target-feature +neon %s -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 typedef struct _zend_ini_entry zend_ini_entry;
anatofuz
parents:
diff changeset
5 struct _zend_ini_entry {
anatofuz
parents:
diff changeset
6 void *mh_arg1;
anatofuz
parents:
diff changeset
7 };
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 char a;
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 const zend_ini_entry ini_entries[] = {
anatofuz
parents:
diff changeset
12 { ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
anatofuz
parents:
diff changeset
13 };
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // PR7564
anatofuz
parents:
diff changeset
16 struct GLGENH {
anatofuz
parents:
diff changeset
17 int : 27;
anatofuz
parents:
diff changeset
18 int EMHJAA : 1;
anatofuz
parents:
diff changeset
19 };
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 struct GLGENH ABHFBF = {1};
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
anatofuz
parents:
diff changeset
24 typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // rdar://8183908
anatofuz
parents:
diff changeset
27 typedef unsigned int uint32_t;
anatofuz
parents:
diff changeset
28 typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
anatofuz
parents:
diff changeset
29 void foo() {
anatofuz
parents:
diff changeset
30 const uint32x2_t signBit = { (uint2) 0x80000000 };
anatofuz
parents:
diff changeset
31 }
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 // CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
anatofuz
parents:
diff changeset
34 struct fp_struct_bar { int a; };
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 struct fp_struct_foo {
anatofuz
parents:
diff changeset
37 void (*FP)(struct fp_struct_bar);
anatofuz
parents:
diff changeset
38 } G;