xref: /llvm-project/llvm/test/CodeGen/Hexagon/late-pred.ll (revision 2208c97c1bec2512d4e47b6223db6d95a7037956)
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s
2
3; This generates A4_addp_c, which cannot be used as a dot-new predicate
4; producer (resulting in a crash).
5; CHECK-NOT: p{{[0-3]+}}.new
6
7target triple = "hexagon"
8
9define void @ext4_group_extend() #0 {
10entry:
11  %es.idx.val = load i32, ptr undef, align 4
12  %conv1.i = zext i32 %es.idx.val to i64
13  %or.i = or i64 undef, %conv1.i
14  %add20 = add i64 %or.i, undef
15  %cmp21 = icmp ult i64 %add20, %or.i
16  br i1 %cmp21, label %if.then23, label %if.end24
17
18if.then23:                                        ; preds = %entry
19  unreachable
20
21if.end24:                                         ; preds = %entry
22  unreachable
23}
24
25attributes #0 = { nounwind "target-cpu"="hexagonv65" }
26
27