1 ; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 -hexagon-instsimplify=0 < %s | FileCheck %s
3 ; Check that a setcc of a vector pair is handled (without crashing).
6 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"
7 target triple = "hexagon"
9 ; Function Attrs: nounwind
10 define hidden fastcc void @fred(i32 %a0) #0 {
12 %v2 = insertelement <32 x i32> undef, i32 %a0, i32 0
13 %v3 = shufflevector <32 x i32> %v2, <32 x i32> undef, <32 x i32> zeroinitializer
14 %v4 = icmp eq <32 x i32> %v2, %v3
15 %v5 = and <32 x i1> undef, %v4
19 %v7 = extractelement <32 x i1> %v5, i32 22
20 br i1 %v7, label %b8, label %b9
29 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }