1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -global-isel -global-isel-abort=1 -aarch64-enable-gisel-sve=1 %s -o - | FileCheck %s
5 define void @formal_argument_nxv16i8(<vscale x 16 x i8> %0, ptr %p) {
6 ; CHECK-LABEL: formal_argument_nxv16i8:
8 ; CHECK-NEXT: ptrue p0.b
9 ; CHECK-NEXT: st1b { z0.b }, p0, [x0]
11 store <vscale x 16 x i8> %0, ptr %p, align 16
15 define void @formal_argument_nxv8i16(<vscale x 8 x i16> %0, ptr %p) {
16 ; CHECK-LABEL: formal_argument_nxv8i16:
18 ; CHECK-NEXT: ptrue p0.h
19 ; CHECK-NEXT: st1h { z0.h }, p0, [x0]
21 store <vscale x 8 x i16> %0, ptr %p, align 16
25 define void @formal_argument_nxv4i32(<vscale x 4 x i32> %0, ptr %p) {
26 ; CHECK-LABEL: formal_argument_nxv4i32:
28 ; CHECK-NEXT: ptrue p0.s
29 ; CHECK-NEXT: st1w { z0.s }, p0, [x0]
31 store <vscale x 4 x i32> %0, ptr %p, align 16
35 define void @formal_argument_nxv2i64(<vscale x 2 x i64> %0, ptr %p) {
36 ; CHECK-LABEL: formal_argument_nxv2i64:
38 ; CHECK-NEXT: ptrue p0.d
39 ; CHECK-NEXT: st1d { z0.d }, p0, [x0]
41 store <vscale x 2 x i64> %0, ptr %p, align 16
45 ;; TODO: Add tests for other types when store is supported for them.