29 lines · plain
1; RUN: llc -mtriple=hexagon -hexagon-instsimplify=0 < %s | FileCheck %s2 3; This used to crash in SimplifyDemandedBits due to a type mismatch4; caused by a missing bitcast in vectorizing mul.5; CHECK: vmpy6 7target 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"8target triple = "hexagon"9 10define void @fred(i16 signext %a0, ptr %a1, <32 x i16> %a3) #0 {11b1:12 %v4 = add i16 undef, %a013 br i1 undef, label %b11, label %b514 15b5: ; preds = %b116 %v6 = insertelement <32 x i16> undef, i16 %v4, i32 017 %v7 = shufflevector <32 x i16> %v6, <32 x i16> undef, <32 x i32> zeroinitializer18 %v8 = add <32 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7, i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15, i16 16, i16 17, i16 18, i16 19, i16 20, i16 21, i16 22, i16 23, i16 24, i16 25, i16 26, i16 27, i16 28, i16 29, i16 30, i16 31>, <i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256>19 %v9 = mul <32 x i16> %v8, %a320 %v10 = add <32 x i16> %v7, %v921 store <32 x i16> %v10, ptr %a1, align 222 ret void23 24b11: ; preds = %b125 ret void26}27 28attributes #0 = { norecurse nounwind "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }29