Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

90 lines
3.0 KiB
C

// REQUIRES: powerpc-registered-target
// RUN: %clang_cc1 -triple powerpc-unknown-aix -target-feature +altivec \
// RUN: -emit-llvm -o - %s | FileCheck --check-prefix=AIX32 %s
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-feature +altivec \
// RUN: -emit-llvm -o - %s | FileCheck --check-prefix=AIX64 %s
typedef struct {
} Zero;
typedef struct {
char c;
} One;
typedef struct {
short s;
} Two;
typedef struct {
char c[3];
} Three;
typedef struct {
float f;
} Four;
typedef struct {
char c[5];
} Five;
typedef struct {
short s[3];
} Six;
typedef struct {
char c[7];
} Seven;
typedef struct {
long long l;
} Eight;
typedef struct {
int i;
} __attribute__((aligned(32))) OverAligned;
typedef struct {
int i;
vector signed int vsi;
} StructVector;
// AIX32-LABEL: define void @arg0(ptr noundef byval(%struct.Zero) align 4 %x)
// AIX64-LABEL: define void @arg0(ptr noundef byval(%struct.Zero) align 8 %x)
void arg0(Zero x) {}
// AIX32-LABEL: define void @arg1(ptr noundef byval(%struct.One) align 4 %x)
// AIX64-LABEL: define void @arg1(ptr noundef byval(%struct.One) align 8 %x)
void arg1(One x) {}
// AIX32-LABEL: define void @arg2(ptr noundef byval(%struct.Two) align 4 %x)
// AIX64-LABEL: define void @arg2(ptr noundef byval(%struct.Two) align 8 %x)
void arg2(Two x) {}
// AIX32-LABEL: define void @arg3(ptr noundef byval(%struct.Three) align 4 %x)
// AIX64-LABEL: define void @arg3(ptr noundef byval(%struct.Three) align 8 %x)
void arg3(Three x) {}
// AIX32-LABEL: define void @arg4(ptr noundef byval(%struct.Four) align 4 %x)
// AIX64-LABEL: define void @arg4(ptr noundef byval(%struct.Four) align 8 %x)
void arg4(Four x) {}
// AIX32-LABEL: define void @arg5(ptr noundef byval(%struct.Five) align 4 %x)
// AIX64-LABEL: define void @arg5(ptr noundef byval(%struct.Five) align 8 %x)
void arg5(Five x) {}
// AIX32-LABEL: define void @arg6(ptr noundef byval(%struct.Six) align 4 %x)
// AIX64-LABEL: define void @arg6(ptr noundef byval(%struct.Six) align 8 %x)
void arg6(Six x) {}
// AIX32-LABEL: define void @arg7(ptr noundef byval(%struct.Seven) align 4 %x)
// AIX64-LABEL: define void @arg7(ptr noundef byval(%struct.Seven) align 8 %x)
void arg7(Seven x) {}
// AIX32-LABEL: define void @arg8(ptr noundef byval(%struct.Eight) align 4 %0)
// AIX32: %x = alloca %struct.Eight, align 8
// AIX32: call void @llvm.memcpy.p0.p0.i32
// AIX64-LABEL: define void @arg8(ptr noundef byval(%struct.Eight) align 8 %x)
void arg8(Eight x) {}
// AIX32-LABEL: define void @arg9(ptr noundef byval(%struct.OverAligned) align 4 %0)
// AIX32: %x = alloca %struct.OverAligned, align 32
// AIX32: call void @llvm.memcpy.p0.p0.i32
// AIX64-LABEL: define void @arg9(ptr noundef byval(%struct.OverAligned) align 8 %0)
// AIX64: %x = alloca %struct.OverAligned, align 32
// AIX64: call void @llvm.memcpy.p0.p0.i64
void arg9(OverAligned x) {}
// AIX32-LABEL: define void @arg10(ptr noundef byval(%struct.StructVector) align 16 %x)
// AIX64-LABEL: define void @arg10(ptr noundef byval(%struct.StructVector) align 16 %x)
void arg10(StructVector x) {}