1; RUN: llc -mv65 -mattr=+hvxv65,hvx-length128b -march=hexagon -O2 < %s | FileCheck %s 2 3; CHECK-LABEL: V6_vgathermw_128B 4; CHECK: vtmp.w = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}.w).w 5; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 6; CHECK-LABEL: V6_vgathermh_128B 7; CHECK: vtmp.h = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}.h).h 8; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 9; CHECK-LABEL: V6_vgathermhw_128B 10; CHECK: vtmp.h = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}:{{[0-9]+}}.w).h 11; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 12; CHECK-LABEL: V6_vgathermwq_128B 13; CHECK: if (q{{[0-3]+}}) vtmp.w = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}.w).w 14; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 15; CHECK-LABEL: V6_vgathermhq_128B 16; CHECK: if (q{{[0-3]+}}) vtmp.h = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}.h).h 17; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 18; CHECK-LABEL: V6_vgathermhwq_128B 19; CHECK: if (q{{[0-3]+}}) vtmp.h = vgather(r1,m{{[0-9]+}},v{{[0-9]+}}:{{[0-9]+}}.w).h 20; CHECK: vmem(r{{[0-9]+}}+#0) = vtmp.new 21 22declare void @llvm.hexagon.V6.vgathermw.128B(i8*, i32, i32, <32 x i32>) 23define void @V6_vgathermw_128B(i8* %a, i32 %b, i32 %c, <32 x i32> %d) { 24 call void @llvm.hexagon.V6.vgathermw.128B(i8* %a, i32 %b, i32 %c, <32 x i32> %d) 25 ret void 26} 27 28declare void @llvm.hexagon.V6.vgathermh.128B(i8*, i32, i32, <32 x i32>) 29define void @V6_vgathermh_128B(i8* %a, i32 %b, i32 %c, <32 x i32> %d) { 30 call void @llvm.hexagon.V6.vgathermh.128B(i8* %a, i32 %b, i32 %c, <32 x i32> %d) 31 ret void 32} 33 34declare void @llvm.hexagon.V6.vgathermhw.128B(i8*, i32, i32, <64 x i32>) 35define void @V6_vgathermhw_128B(i8* %a, i32 %b, i32 %c, <64 x i32> %d) { 36 call void @llvm.hexagon.V6.vgathermhw.128B(i8* %a, i32 %b, i32 %c, <64 x i32> %d) 37 ret void 38} 39 40declare void @llvm.hexagon.V6.vgathermwq.128B(i8*, <1024 x i1>, i32, i32, <32 x i32>) 41define void @V6_vgathermwq_128B(i8* %a, <32 x i32> %b, i32 %c, i32 %d, <32 x i32> %e) { 42 %1 = bitcast <32 x i32> %b to <1024 x i1> 43 call void @llvm.hexagon.V6.vgathermwq.128B(i8* %a, <1024 x i1> %1, i32 %c, i32 %d, <32 x i32> %e) 44 ret void 45} 46 47declare void @llvm.hexagon.V6.vgathermhq.128B(i8*, <1024 x i1>, i32, i32, <32 x i32>) 48define void @V6_vgathermhq_128B(i8* %a, <32 x i32> %b, i32 %c, i32 %d, <32 x i32> %e) { 49 %1 = bitcast <32 x i32> %b to <1024 x i1> 50 call void @llvm.hexagon.V6.vgathermhq.128B(i8* %a, <1024 x i1> %1, i32 %c, i32 %d, <32 x i32> %e) 51 ret void 52} 53 54declare void @llvm.hexagon.V6.vgathermhwq.128B(i8*, <1024 x i1>, i32, i32, <64 x i32>) 55define void @V6_vgathermhwq_128B(i8* %a, <32 x i32> %b, i32 %c, i32 %d, <64 x i32> %e) { 56 %1 = bitcast <32 x i32> %b to <1024 x i1> 57 call void @llvm.hexagon.V6.vgathermhwq.128B(i8* %a, <1024 x i1> %1, i32 %c, i32 %d, <64 x i32> %e) 58 ret void 59} 60 61