brintos

brintos / llvm-project-archived public Read only

0
0
Text · 978 B · f747361 Raw
31 lines · c
1// RUN: %clang_cc1 -triple arm64_32-apple-ios7.0 -emit-llvm -o - %s | FileCheck %s2 3struct Foo {4  char a;5  int b : 1;6};7 8int BitfieldOffset = sizeof(struct Foo);9// CHECK: @BitfieldOffset ={{.*}} global i32 210 11int PointerSize = sizeof(void *);12// CHECK: @PointerSize ={{.*}} global i32 413 14int PointerAlign = __alignof(void *);15// CHECK: @PointerAlign ={{.*}} global i32 416 17int LongSize = sizeof(long);18// CHECK: @LongSize ={{.*}} global i32 419 20int LongAlign = __alignof(long);21// CHECK: @LongAlign ={{.*}} global i32 422 23// Not expected to change, but it's a difference between AAPCS and DarwinPCS24// that we need to be preserved for compatibility with ARMv7k.25long double LongDoubleVar = 0.0;26// CHECK: @LongDoubleVar ={{.*}} global double27 28typedef float __attribute__((ext_vector_type(16))) v16f32;29v16f32 func(v16f32 in) { return in; }30// CHECK: define{{.*}} void @func(ptr dead_on_unwind noalias writable sret(<16 x float>) align 16 {{%.*}}, <16 x float> noundef {{%.*}})31