CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
64 lines
1.7 KiB
C
64 lines
1.7 KiB
C
// RUN: %clang_cc1 -triple s390x-linux-gnu -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// SystemZ prefers to align all global variables to two bytes.
|
|
|
|
struct test {
|
|
signed char a;
|
|
};
|
|
|
|
char c;
|
|
// CHECK-DAG: @c ={{.*}} global i8 0, align 2
|
|
|
|
struct test s;
|
|
// CHECK-DAG: @s ={{.*}} global %struct.test zeroinitializer, align 2
|
|
|
|
extern char ec;
|
|
// CHECK-DAG: @ec = external global i8, align 2
|
|
|
|
extern struct test es;
|
|
// CHECK-DAG: @es = external global %struct.test, align 2
|
|
|
|
// Dummy function to make sure external symbols are used.
|
|
void func (void)
|
|
{
|
|
c = ec;
|
|
s = es;
|
|
}
|
|
|
|
// Test that a global variable with an incomplete type gets the minimum
|
|
// alignment of 2 per the ABI if no alignment was specified by user.
|
|
//
|
|
// CHECK-DAG: @VarNoAl {{.*}} align 2
|
|
// CHECK-DAG: @VarExplAl1 {{.*}} align 1
|
|
// CHECK-DAG: @VarExplAl4 {{.*}} align 4
|
|
struct incomplete_ty;
|
|
extern struct incomplete_ty VarNoAl;
|
|
extern struct incomplete_ty __attribute__((aligned(1))) VarExplAl1;
|
|
extern struct incomplete_ty __attribute__((aligned(4))) VarExplAl4;
|
|
struct incomplete_ty *fun0 (void) { return &VarNoAl; }
|
|
struct incomplete_ty *fun1 (void) { return &VarExplAl1; }
|
|
struct incomplete_ty *fun2 (void) { return &VarExplAl4; }
|
|
|
|
// The SystemZ ABI aligns __int128_t to only eight bytes.
|
|
|
|
struct S_int128 { __int128_t B; } Obj_I128;
|
|
__int128_t GlobI128;
|
|
// CHECK: @Obj_I128 = global %struct.S_int128 zeroinitializer, align 8
|
|
// CHECK: @GlobI128 = global i128 0, align 8
|
|
|
|
|
|
// Alignment should be respected for coerced argument loads
|
|
|
|
struct arg { long y __attribute__((packed, aligned(4))); };
|
|
|
|
extern struct arg x;
|
|
void f(struct arg);
|
|
|
|
void test (void)
|
|
{
|
|
f(x);
|
|
}
|
|
|
|
// CHECK-LABEL: @test
|
|
// CHECK: load i64, ptr @x, align 4
|