1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; Check that the parsing succeeded.
6 target triple = "hexagon"
8 @g0 = external global [0 x i16], align 8
10 ; Function Attrs: nounwind
11 define void @f0() #0 {
18 b2: ; preds = %b2, %b0
19 %v0 = phi i32 [ 0, %b0 ], [ %v1, %b2 ]
20 %v1 = add nsw i32 %v0, 4
21 %v2 = getelementptr [0 x i16], ptr @g0, i32 0, i32 %v0
22 %v4 = load <4 x i16>, ptr %v2, align 2
23 %v5 = icmp slt <4 x i16> %v4, zeroinitializer
24 %v6 = xor <4 x i16> %v4, <i16 -32768, i16 -32768, i16 -32768, i16 -32768>
25 %v7 = select <4 x i1> %v5, <4 x i16> %v6, <4 x i16> zeroinitializer
26 store <4 x i16> %v7, ptr %v2, align 2
27 %v8 = icmp slt i32 %v1, 32768
28 br i1 %v8, label %b2, label %b1
31 attributes #0 = { nounwind "target-cpu"="hexagonv55" }