; RUN: llc -march=hexagon -hexagon-instsimplify=0 < %s | FileCheck %s ; This used to crash in SimplifyDemandedBits due to a type mismatch ; caused by a missing bitcast in vectorizing mul. ; CHECK: vmpy 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" define void @fred(i16 signext %a0, <32 x i16>* %a1, <32 x i16> %a3) #0 { b1: %v4 = add i16 undef, %a0 br i1 undef, label %b11, label %b5 b5: ; preds = %b1 %v6 = insertelement <32 x i16> undef, i16 %v4, i32 0 %v7 = shufflevector <32 x i16> %v6, <32 x i16> undef, <32 x i32> zeroinitializer %v8 = add <32 x i16> , %v9 = mul <32 x i16> %v8, %a3 %v10 = add <32 x i16> %v7, %v9 store <32 x i16> %v10, <32 x i16>* %a1, align 2 ret void b11: ; preds = %b1 ret void } attributes #0 = { norecurse nounwind "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }