1 ; RUN: llc -march=hexagon -O3 -verify-machineinstrs -disable-hexagon-peephole < %s
4 ; This test checks if tied operands are consistent.
5 target triple = "hexagon-unknown--elf"
7 ; Function Attrs: nounwind
8 define void @f0(ptr nocapture %a0) #0 {
12 b1: ; preds = %b5, %b0
13 %v0 = phi ptr [ %a0, %b0 ], [ %v5, %b5 ]
14 %v1 = phi i16 [ undef, %b0 ], [ %v10, %b5 ]
15 br i1 undef, label %b2, label %b3
18 %v2 = getelementptr inbounds i16, ptr %v0, i32 1
19 %v3 = load i16, ptr %v0, align 2, !tbaa !0
22 b3: ; preds = %b2, %b1
23 %v4 = phi i16 [ %v3, %b2 ], [ %v1, %b1 ]
24 %v5 = phi ptr [ %v2, %b2 ], [ %v0, %b1 ]
26 %v7 = zext i16 %v6 to i32
28 %v9 = icmp ult i32 %v8, 9
29 br i1 %v9, label %b4, label %b5
32 call void @llvm.trap()
36 %v10 = lshr i16 %v4, 8
40 ; Function Attrs: noreturn nounwind
41 declare void @llvm.trap() #1
43 attributes #0 = { nounwind "target-cpu"="hexagonv55" }
44 attributes #1 = { noreturn nounwind }
48 !2 = !{!"omnipotent char", !3}
49 !3 = !{!"Simple C/C++ TBAA"}