• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s
2;
3; Make sure this test compiles successfully.
4; CHECK: call foo
5
6target triple = "hexagon--elf"
7
8; Function Attrs: nounwind
9define i32 @fred(i1 %a0) #0 {
10b0:
11  call void @foo() #0
12  br label %b1
13
14b1:                                               ; preds = %b0
15  br i1 %a0, 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" }
28