@@ -6,14 +6,52 @@ target triple = "powerpc64le-unknown-linux-gnu"
66
77define void @bar (ptr %base , <2 x i8 > %val ) {
88; P9: cost of 16 for {{.*}} @llvm.masked.load.v2i8.p0
9- ; P10: cost of 4 for {{.*}} @llvm.masked.load.v2i8.p0
10- ; FUTURE: cost of 3 for {{.*}} @llvm.masked.load.v2i8.p0
119; P9: cost of 12 for {{.*}} @llvm.masked.store.v2i8.p0
10+ ; P9: cost of 16 for {{.*}} @llvm.masked.load.v2i16.p0
11+ ; P9: cost of 12 for {{.*}} @llvm.masked.store.v2i16.p0
12+ ; P9: cost of 16 for {{.*}} @llvm.masked.load.v2i32.p0
13+ ; P9: cost of 12 for {{.*}} @llvm.masked.store.v2i32.p0
14+ ; P9: cost of 12 for {{.*}} @llvm.masked.load.v2i64.p0
15+ ; P9: cost of 10 for {{.*}} @llvm.masked.store.v2i64.p0
16+ ; P9: cost of 36 for {{.*}} @llvm.masked.load.v3i64.p0
17+ ; P9: cost of 15 for {{.*}} @llvm.masked.store.v3i64.p0
18+ ; P9: cost of 32 for {{.*}} @llvm.masked.load.v4i15.p0
19+ ; P9: cost of 24 for {{.*}} @llvm.masked.store.v4i15.p0
20+ ; P10: cost of 4 for {{.*}} @llvm.masked.load.v2i8.p0
1221; P10: cost of 4 for {{.*}} @llvm.masked.store.v2i8.p0
22+ ; P10: cost of 4 for {{.*}} @llvm.masked.load.v2i16.p0
23+ ; P10: cost of 4 for {{.*}} @llvm.masked.store.v2i16.p0
24+ ; P10: cost of 4 for {{.*}} @llvm.masked.load.v2i32.p0
25+ ; P10: cost of 4 for {{.*}} @llvm.masked.store.v2i32.p0
26+ ; P10: cost of 4 for {{.*}} @llvm.masked.load.v2i64.p0
27+ ; P10: cost of 4 for {{.*}} @llvm.masked.store.v2i64.p0
28+ ; P10: cost of 24 for {{.*}} @llvm.masked.load.v3i64.p0
29+ ; P10: cost of 12 for {{.*}} @llvm.masked.store.v3i64.p0
30+ ; P10: cost of 16 for {{.*}} @llvm.masked.load.v4i15.p0
31+ ; P10: cost of 16 for {{.*}} @llvm.masked.store.v4i15.p0
32+ ; FUTURE: cost of 3 for {{.*}} @llvm.masked.load.v2i8.p0
1333; FUTURE: cost of 3 for {{.*}} @llvm.masked.store.v2i8.p0
14- %x2 = call <2 x i8 > @llvm.masked.load.v2i8.p0 (ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >, <2 x i8 > %val )
15-
16- call void @llvm.masked.store.v2i8.p0 (<2 x i8 > %x2 , ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >)
17-
34+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.load.v2i16.p0
35+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.store.v2i16.p0
36+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.load.v2i32.p0
37+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.store.v2i32.p0
38+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.load.v2i64.p0
39+ ; FUTURE: cost of 4 for {{.*}} @llvm.masked.store.v2i64.p0
40+ ; FUTURE: cost of 24 for {{.*}} @llvm.masked.load.v3i64.p0
41+ ; FUTURE: cost of 12 for {{.*}} @llvm.masked.store.v3i64.p0
42+ ; FUTURE: cost of 16 for {{.*}} @llvm.masked.load.v4i15.p0
43+ ; FUTURE: cost of 16 for {{.*}} @llvm.masked.store.v4i15.p0
44+ %x1 = call <2 x i8 > @llvm.masked.load.v2i8.p0 (ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >, <2 x i8 > %val )
45+ call void @llvm.masked.store.v2i8.p0 (<2 x i8 > %x1 , ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >)
46+ %x2 = call <2 x i16 > @llvm.masked.load.v2i16.p0 (ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >, <2 x i16 > <i16 0 , i16 0 >)
47+ call void @llvm.masked.store.v2i16.p0 (<2 x i16 > %x2 , ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >)
48+ %x3 = call <2 x i32 > @llvm.masked.load.v2i32.p0 (ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >, <2 x i32 > <i32 0 , i32 0 >)
49+ call void @llvm.masked.store.v2i32.p0 (<2 x i32 > %x3 , ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >)
50+ %x4 = call <2 x i64 > @llvm.masked.load.v2i64.p0 (ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >, <2 x i64 > <i64 0 , i64 0 >)
51+ call void @llvm.masked.store.v2i64.p0 (<2 x i64 > %x4 , ptr %base , i32 1 , <2 x i1 > <i1 1 , i1 1 >)
52+ %x5 = call <3 x i64 > @llvm.masked.load.v3i64.p0 (ptr %base , i32 1 , <3 x i1 > <i1 1 , i1 1 , i1 1 >, <3 x i64 > <i64 0 , i64 0 , i64 0 >)
53+ call void @llvm.masked.store.v3i64.p0 (<3 x i64 > %x5 , ptr %base , i32 1 , <3 x i1 > <i1 1 , i1 1 , i1 1 >)
54+ %x6 = call <4 x i15 > @llvm.masked.load.v4i15.p0 (ptr %base , i32 1 , <4 x i1 > <i1 1 , i1 1 , i1 1 , i1 1 >, <4 x i15 > <i15 0 , i15 0 , i15 0 , i15 0 >)
55+ call void @llvm.masked.store.v4i15.p0 (<4 x i15 > %x6 , ptr %base , i32 1 , <4 x i1 > <i1 1 , i1 1 , i1 1 , i1 1 >)
1856 ret void
1957}
0 commit comments