; RUN: llc -march=hexagon < %s | FileCheck %s ; Check for a non-crashing output. ; CHECK: vsplat target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048" target triple = "hexagon-unknown--elf" declare <16 x i32> @llvm.hexagon.V6.lo(<32 x i32>) #0 declare <32 x i32> @llvm.hexagon.V6.vshuffvdd(<16 x i32>, <16 x i32>, i32) #0 declare <16 x i32> @llvm.hexagon.V6.lvsplatw(i32) #0 define void @crash(<16 x i32>* %a0) #1 { b0: %v1 = tail call <16 x i32> @llvm.hexagon.V6.lvsplatw(i32 0) #0 %v2 = bitcast <16 x i32> %v1 to <32 x i16> %v3 = shufflevector <32 x i16> %v2, <32 x i16> undef, <128 x i32> %v4 = shufflevector <128 x i16> %v3, <128 x i16> undef, <64 x i32> %v5 = bitcast <64 x i16> %v4 to <32 x i32> %v6 = tail call <16 x i32> @llvm.hexagon.V6.lo(<32 x i32> %v5) #0 %v7 = tail call <32 x i32> @llvm.hexagon.V6.vshuffvdd(<16 x i32> undef, <16 x i32> %v6, i32 -2) #0 %v8 = tail call <16 x i32> @llvm.hexagon.V6.lo(<32 x i32> %v7) store <16 x i32> %v8, <16 x i32>* %a0, align 2 ret void } attributes #0 = { nounwind readnone } attributes #1 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }