Krzysztof Parzyszek | d91a9e2 | 2018-08-02 22:17:53 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s |
Krzysztof Parzyszek | d70f5a0 | 2018-02-27 18:31:46 +0000 | [diff] [blame] | 2 | |
| 3 | ; Check that this compiles successfully. |
| 4 | ; CHECK: if (p0) |
| 5 | |
| 6 | target triple = "hexagon" |
| 7 | |
| 8 | define void @fred() #0 { |
| 9 | b0: |
| 10 | br label %b1 |
| 11 | |
| 12 | b1: ; preds = %b1, %b0 |
| 13 | %v2 = load i32, i32* undef, align 4 |
| 14 | %v3 = select i1 undef, i32 %v2, i32 0 |
| 15 | %v4 = and i32 %v3, 7 |
| 16 | %v5 = icmp eq i32 %v4, 4 |
| 17 | %v6 = or i1 undef, %v5 |
| 18 | %v7 = and i1 undef, %v6 |
| 19 | %v8 = xor i1 %v7, true |
| 20 | %v9 = or i1 undef, %v8 |
| 21 | br i1 %v9, label %b10, label %b1 |
| 22 | |
| 23 | b10: ; preds = %b1 |
| 24 | unreachable |
| 25 | } |
| 26 | |
| 27 | attributes #0 = { nounwind "target-cpu"="hexagonv55" } |