Krzysztof Parzyszek | dd9415d | 2018-06-11 18:45:52 +0000 | [diff] [blame] | 1 | ; 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 | |
| 7 | target triple = "hexagon" |
| 8 | |
| 9 | define void @ext4_group_extend() #0 { |
| 10 | entry: |
| 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 | |
| 18 | if.then23: ; preds = %entry |
| 19 | unreachable |
| 20 | |
| 21 | if.end24: ; preds = %entry |
| 22 | unreachable |
| 23 | } |
| 24 | |
| 25 | attributes #0 = { nounwind "target-cpu"="hexagonv65" } |
| 26 | |