Krzysztof Parzyszek | 8a7fb0f | 2017-06-08 20:56:36 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s |
| 2 | ; |
| 3 | ; Make sure this test compiles successfully. |
| 4 | ; CHECK: jumpr r31 |
| 5 | |
| 6 | target triple = "hexagon--elf" |
| 7 | |
| 8 | ; Function Attrs: nounwind |
| 9 | define i32 @fred() #0 { |
| 10 | b0: |
| 11 | call void @foo() #0 |
| 12 | br label %b1 |
| 13 | |
| 14 | b1: ; preds = %b0 |
| 15 | br i1 undef, label %b2, label %b3 |
| 16 | |
| 17 | b2: ; preds = %b1 |
| 18 | br label %b3 |
| 19 | |
| 20 | b3: ; preds = %b2, %b1 |
| 21 | %v4 = phi i32 [ 1, %b1 ], [ 2, %b2 ] |
| 22 | ret i32 %v4 |
| 23 | } |
| 24 | |
| 25 | declare void @foo() #0 |
| 26 | |
| 27 | attributes #0 = { nounwind "target-cpu"="hexagonv60" } |