1; RUN: llc -mv65 -mattr=+hvxv65,hvx-length64b -march=hexagon -O2 < %s | FileCheck %s 2; RUN: llc -mv65 -mattr=+hvxv65,hvx-length64b -march=hexagon -O2 -disable-packetizer < %s | FileCheck %s 3; RUN: llc -mv65 -mattr=+hvxv65,hvx-length64b -march=hexagon -O0 < %s | FileCheck %s 4 5; CHECK: vtmp.h = vgather(r{{[0-9]+}},m{{[0-9]+}},v{{[0-9]+}}.h).h 6; CHECK-NEXT: vmem(r{{[0-9]+}}+#0) = vtmp.new 7; CHECK-NEXT: } 8 9declare i32 @add_translation_extended(i32, i8*, i64, i32, i32, i32, i32, i32, i32) local_unnamed_addr 10 11; Function Attrs: nounwind 12define i32 @main() local_unnamed_addr { 13entry: 14 %hvx_vector = alloca <16 x i32>, align 64 15 %0 = bitcast <16 x i32>* %hvx_vector to i8* 16 %call.i = tail call i32 @add_translation_extended(i32 1, i8* inttoptr (i32 -668991488 to i8*), i64 3625975808, i32 16, i32 15, i32 0, i32 0, i32 0, i32 3) 17 %1 = tail call <16 x i32> @llvm.hexagon.V6.lvsplatw(i32 1) 18 %2 = tail call <16 x i32> @llvm.hexagon.V6.lvsplatw(i32 2) 19 tail call void @llvm.hexagon.V6.vscattermh.add(i32 -668991488, i32 1023, <16 x i32> %1, <16 x i32> %2) 20 call void @llvm.hexagon.V6.vgathermh(i8* %0, i32 -668991488, i32 1023, <16 x i32> %1) 21 ret i32 0 22} 23 24; Function Attrs: nounwind writeonly 25declare void @llvm.hexagon.V6.vscattermh.add(i32, i32, <16 x i32>, <16 x i32>) 26 27; Function Attrs: nounwind readnone 28declare <16 x i32> @llvm.hexagon.V6.lvsplatw(i32) 29 30; Function Attrs: argmemonly nounwind 31declare void @llvm.hexagon.V6.vgathermh(i8*, i32, i32, <16 x i32>) 32 33