1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=ve-unknown-unknown -mattr=+vpu | FileCheck %s
4 declare void @llvm.masked.scatter.v256i64.v256p0(<256 x i64>, <256 x ptr>, i32 immarg, <256 x i1>) #0
6 ; Function Attrs: nounwind
7 define fastcc void @vec_mscatter_v256i64(<256 x i64> %V, <256 x ptr> %P, <256 x i1> %M) {
8 ; CHECK-LABEL: vec_mscatter_v256i64:
10 ; CHECK-NEXT: lea %s0, 256
12 ; CHECK-NEXT: vsc %v0, %v1, 0, 0
13 ; CHECK-NEXT: b.l.t (, %s10)
14 call void @llvm.masked.scatter.v256i64.v256p0(<256 x i64> %V, <256 x ptr> %P, i32 4, <256 x i1> %M)
18 declare void @llvm.masked.scatter.v256f64.v256p0(<256 x double>, <256 x ptr>, i32 immarg, <256 x i1>) #0
20 ; Function Attrs: nounwind
21 define fastcc void @vec_mscatter_v256f64(<256 x double> %V, <256 x ptr> %P, <256 x i1> %M) {
22 ; CHECK-LABEL: vec_mscatter_v256f64:
24 ; CHECK-NEXT: lea %s0, 256
26 ; CHECK-NEXT: vsc %v0, %v1, 0, 0
27 ; CHECK-NEXT: b.l.t (, %s10)
28 call void @llvm.masked.scatter.v256f64.v256p0(<256 x double> %V, <256 x ptr> %P, i32 4, <256 x i1> %M)
32 declare void @llvm.masked.scatter.v256f32.v256p0(<256 x float>, <256 x ptr>, i32 immarg, <256 x i1>) #0
34 ; Function Attrs: nounwind
35 define fastcc void @vec_mscatter_v256f32(<256 x float> %V, <256 x ptr> %P, <256 x i1> %M) {
36 ; CHECK-LABEL: vec_mscatter_v256f32:
38 ; CHECK-NEXT: lea %s0, 256
40 ; CHECK-NEXT: vscu %v0, %v1, 0, 0
41 ; CHECK-NEXT: b.l.t (, %s10)
42 call void @llvm.masked.scatter.v256f32.v256p0(<256 x float> %V, <256 x ptr> %P, i32 4, <256 x i1> %M)
46 declare void @llvm.masked.scatter.v256i32.v256p0(<256 x i32>, <256 x ptr>, i32 immarg, <256 x i1>) #0
48 ; Function Attrs: nounwind
49 define fastcc void @vec_mscatter_v256i32(<256 x i32> %V, <256 x ptr> %P, <256 x i1> %M) {
50 ; CHECK-LABEL: vec_mscatter_v256i32:
52 ; CHECK-NEXT: lea %s0, 256
54 ; CHECK-NEXT: vscl %v0, %v1, 0, 0
55 ; CHECK-NEXT: b.l.t (, %s10)
56 call void @llvm.masked.scatter.v256i32.v256p0(<256 x i32> %V, <256 x ptr> %P, i32 4, <256 x i1> %M)
60 attributes #0 = { argmemonly nounwind readonly willreturn }