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