; RUN: llc -march=hexagon < %s | FileCheck %s ; Check that this doesn't crash. ; CHECK: vlut32 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" define void @fred(<16 x i32>* %a0, <16 x i32>* %a1) #0 { b0: %v1 = tail call <16 x i32> @llvm.hexagon.V6.vlutvvb.oracc(<16 x i32> undef, <16 x i32> , <16 x i32> undef, i32 3) %v2 = bitcast <16 x i32> %v1 to <64 x i8> %v3 = shufflevector <64 x i8> %v2, <64 x i8> undef, <32 x i32> %v4 = shufflevector <32 x i8> zeroinitializer, <32 x i8> %v3, <64 x i32> %v5 = bitcast <64 x i8> %v4 to <16 x i32> %v6 = tail call <16 x i32> @llvm.hexagon.V6.vshuffb(<16 x i32> %v5) store <16 x i32> %v6, <16 x i32>* %a0, align 1 %v7 = tail call <16 x i32> @llvm.hexagon.V6.vlutvvb.oracc(<16 x i32> undef, <16 x i32> , <16 x i32> zeroinitializer, i32 3) %v8 = bitcast <16 x i32> %v7 to <64 x i8> %v9 = shufflevector <64 x i8> %v8, <64 x i8> undef, <32 x i32> %v10 = shufflevector <32 x i8> %v9, <32 x i8> zeroinitializer, <64 x i32> %v11 = bitcast <64 x i8> %v10 to <16 x i32> %v12 = tail call <16 x i32> @llvm.hexagon.V6.vshuffb(<16 x i32> %v11) store <16 x i32> %v12, <16 x i32>* %a1, align 1 ret void } declare <16 x i32> @llvm.hexagon.V6.vshuffb(<16 x i32>) #1 declare <16 x i32> @llvm.hexagon.V6.vlutvvb.oracc(<16 x i32>, <16 x i32>, <16 x i32>, i32) #1 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" } attributes #1 = { nounwind readnone }