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
55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
// RUN: %clang_cc1 -triple armv7-unknown-unknown -target-abi apcs-gnu %s -verify
|
|
// RUN: %clang_cc1 -triple armv7-unknown-unknown -target-abi aapcs %s -verify
|
|
// expected-no-diagnostics
|
|
|
|
#define check(name, cond) int _##name##_check[(cond) ? 1 : -1]
|
|
|
|
struct s0 { char field0; double field1; };
|
|
#ifdef __ARM_EABI__
|
|
check(s0_size, sizeof(struct s0) == 16);
|
|
#else
|
|
check(s0_size, sizeof(struct s0) == 12);
|
|
#endif
|
|
|
|
struct s1 { char field0; long double field1; };
|
|
#ifdef __ARM_EABI__
|
|
check(s1_size, sizeof(struct s1) == 16);
|
|
#else
|
|
check(s1_size, sizeof(struct s1) == 12);
|
|
#endif
|
|
|
|
struct s2 {
|
|
short field0;
|
|
int field1 : 24;
|
|
char field2;
|
|
};
|
|
#ifdef __ARM_EABI__
|
|
check(s2_size, sizeof(struct s2) == 8);
|
|
check(s2_offset_0, __builtin_offsetof(struct s2, field0) == 0);
|
|
check(s2_offset_1, __builtin_offsetof(struct s2, field2) == 7);
|
|
#else
|
|
check(s2_size, sizeof(struct s2) == 6);
|
|
check(s2_offset_0, __builtin_offsetof(struct s2, field0) == 0);
|
|
check(s2_offset_1, __builtin_offsetof(struct s2, field2) == 5);
|
|
#endif
|
|
|
|
struct s3 {
|
|
short field0;
|
|
int field1 : 24 __attribute__((aligned(4)));
|
|
char field2;
|
|
};
|
|
check(s3_size, sizeof(struct s3) == 8);
|
|
check(s3_offset_0, __builtin_offsetof(struct s3, field0) == 0);
|
|
check(s3_offset_1, __builtin_offsetof(struct s3, field2) == 7);
|
|
|
|
struct s4 {
|
|
int field0 : 4;
|
|
};
|
|
#ifdef __ARM_EABI__
|
|
check(s4_size, sizeof(struct s4) == 4);
|
|
check(s4_align, __alignof(struct s4) == 4);
|
|
#else
|
|
check(s4_size, sizeof(struct s4) == 1);
|
|
check(s4_align, __alignof(struct s4) == 1);
|
|
#endif
|