Home | History | Annotate | Download | only in autohvx
      1 ; RUN: llc -march=hexagon < %s | FileCheck %s
      2 
      3 ; Check that a setcc of a vector pair is handled (without crashing).
      4 ; CHECK: vcmp
      5 
      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"
      8 
      9 ; Function Attrs: nounwind
     10 define hidden fastcc void @fred(i32 %a0) #0 {
     11 b1:
     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> %v3, undef
     15   %v5 = and <32 x i1> undef, %v4
     16   br label %b6
     17 
     18 b6:                                               ; preds = %b1
     19   %v7 = extractelement <32 x i1> %v5, i32 22
     20   br i1 %v7, label %b8, label %b9
     21 
     22 b8:                                               ; preds = %b6
     23   unreachable
     24 
     25 b9:                                               ; preds = %b6
     26   unreachable
     27 }
     28 
     29 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }
     30