brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 0c995b5 Raw
55 lines · plain
1; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -o - %s | FileCheck %s --check-prefix=CHECK-ASM --strict-whitespace2; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -filetype=obj -o - %s \3; RUN:   | llvm-readobj --symbols - | FileCheck %s --check-prefix=CHECK-OBJ4 5; Check we don't crash when using a Mach-O object format.6; RUN: llc -mtriple=arm64-apple-macosx15.0.0 -mattr=+sve -filetype=obj -o /dev/null %s7 8define i32 @base_pcs() {9; CHECK-ASM-LABEL: base_pcs:10; CHECK-ASM-NOT: .variant_pcs11; CHECK-OBJ-LABEL: Name: base_pcs12; CHECK-OBJ: Other: 013  ret i32 4214}15 16define aarch64_vector_pcs <4 x i32> @neon_vector_pcs_1(<4 x i32> %arg) {17; CHECK-ASM: .variant_pcs	neon_vector_pcs_118; CHECK-ASM-NEXT: neon_vector_pcs_1:19; CHECK-OBJ-LABEL: Name: neon_vector_pcs_120; CHECK-OBJ: Other [ (0x80)21  ret <4 x i32> %arg22}23 24define <vscale x 4 x i32> @sve_vector_pcs_1() {25; CHECK-ASM: .variant_pcs	sve_vector_pcs_126; CHECK-ASM-NEXT: sve_vector_pcs_1:27; CHECK-OBJ-LABEL: Name: sve_vector_pcs_128; CHECK-OBJ: Other [ (0x80)29  ret <vscale x 4 x i32> undef30}31 32define <vscale x 4 x i1> @sve_vector_pcs_2() {33; CHECK-ASM: .variant_pcs	sve_vector_pcs_234; CHECK-ASM-NEXT: sve_vector_pcs_2:35; CHECK-OBJ-LABEL: Name: sve_vector_pcs_236; CHECK-OBJ: Other [ (0x80)37  ret <vscale x 4 x i1> undef38}39 40define void @sve_vector_pcs_3(<vscale x 4 x i32> %arg) {41; CHECK-ASM: .variant_pcs	sve_vector_pcs_342; CHECK-ASM-NEXT: sve_vector_pcs_3:43; CHECK-OBJ-LABEL: Name: sve_vector_pcs_344; CHECK-OBJ: Other [ (0x80)45  ret void46}47 48define void @sve_vector_pcs_4(<vscale x 4 x i1> %arg) {49; CHECK-ASM: .variant_pcs	sve_vector_pcs_450; CHECK-ASM-NEXT: sve_vector_pcs_4:51; CHECK-OBJ-LABEL: Name: sve_vector_pcs_452; CHECK-OBJ: Other [ (0x80)53  ret void54}55