2019-12-11 22:46:40 +08:00
|
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
|
|
|
|
|
|
|
|
;
|
|
|
|
; STNT1B
|
|
|
|
;
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1b_i8(<vscale x 16 x i8> %data, <vscale x 16 x i1> %pred, i8* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1b_i8:
|
|
|
|
; CHECK: stnt1b { z0.b }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv16i8(<vscale x 16 x i8> %data,
|
|
|
|
<vscale x 16 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
i8* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
; STNT1H
|
|
|
|
;
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1h_i16(<vscale x 8 x i16> %data, <vscale x 8 x i1> %pred, i16* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1h_i16:
|
|
|
|
; CHECK: stnt1h { z0.h }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv8i16(<vscale x 8 x i16> %data,
|
|
|
|
<vscale x 8 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
i16* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1h_f16(<vscale x 8 x half> %data, <vscale x 8 x i1> %pred, half* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1h_f16:
|
|
|
|
; CHECK: stnt1h { z0.h }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv8f16(<vscale x 8 x half> %data,
|
|
|
|
<vscale x 8 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
half* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
; STNT1W
|
|
|
|
;
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1w_i32(<vscale x 4 x i32> %data, <vscale x 4 x i1> %pred, i32* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1w_i32:
|
|
|
|
; CHECK: stnt1w { z0.s }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv4i32(<vscale x 4 x i32> %data,
|
|
|
|
<vscale x 4 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
i32* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1w_f32(<vscale x 4 x float> %data, <vscale x 4 x i1> %pred, float* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1w_f32:
|
|
|
|
; CHECK: stnt1w { z0.s }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv4f32(<vscale x 4 x float> %data,
|
|
|
|
<vscale x 4 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
float* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
; STNT1D
|
|
|
|
;
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1d_i64(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pred, i64* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1d_i64:
|
|
|
|
; CHECK: stnt1d { z0.d }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv2i64(<vscale x 2 x i64> %data,
|
|
|
|
<vscale x 2 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
i64* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
define void @stnt1d_f64(<vscale x 2 x double> %data, <vscale x 2 x i1> %pred, double* %addr) {
|
2019-12-11 22:46:40 +08:00
|
|
|
; CHECK-LABEL: stnt1d_f64:
|
|
|
|
; CHECK: stnt1d { z0.d }, p0, [x0]
|
|
|
|
; CHECK-NEXT: ret
|
|
|
|
call void @llvm.aarch64.sve.stnt1.nxv2f64(<vscale x 2 x double> %data,
|
|
|
|
<vscale x 2 x i1> %pred,
|
2020-03-18 19:19:25 +08:00
|
|
|
double* %addr)
|
2019-12-11 22:46:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2020-03-18 19:19:25 +08:00
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv16i8(<vscale x 16 x i8>, <vscale x 16 x i1>, i8*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv8i16(<vscale x 8 x i16>, <vscale x 8 x i1>, i16*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv4i32(<vscale x 4 x i32>, <vscale x 4 x i1>, i32*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv2i64(<vscale x 2 x i64>, <vscale x 2 x i1>, i64*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv8f16(<vscale x 8 x half>, <vscale x 8 x i1>, half*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv4f32(<vscale x 4 x float>, <vscale x 4 x i1>, float*)
|
|
|
|
declare void @llvm.aarch64.sve.stnt1.nxv2f64(<vscale x 2 x double>, <vscale x 2 x i1>, double*)
|