1 // RUN: %clang_cc1 -triple s390x-linux-gnu -emit-llvm %s -o - | FileCheck %s
3 // SystemZ prefers to align all global variables to two bytes.
10 // CHECK-DAG: @c ={{.*}} global i8 0, align 2
13 // CHECK-DAG: @s ={{.*}} global %struct.test zeroinitializer, align 2
16 // CHECK-DAG: @ec = external global i8, align 2
18 extern struct test es
;
19 // CHECK-DAG: @es = external global %struct.test, align 2
21 // Dummy function to make sure external symbols are used.
29 // The SystemZ ABI aligns __int128_t to only eight bytes.
31 struct S_int128
{ __int128_t B
; } Obj_I128
;
33 // CHECK: @Obj_I128 = global %struct.S_int128 zeroinitializer, align 8
34 // CHECK: @GlobI128 = global i128 0, align 8
37 // Alignment should be respected for coerced argument loads
39 struct arg
{ long y
__attribute__((packed
, aligned(4))); };
50 // CHECK: load i64, ptr @x, align 4