blob: 3b690eb97ccad2157983546a4e4f1138a3010ca9 [file] [log] [blame]
Krzysztof Parzyszekdd9415d2018-06-11 18:45:52 +00001; RUN: llc -march=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, i32* 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