llvm/test/CodeGen/AArch64/tailcall_misched_graph.ll: s/REQUIRE/REQUIRES/
[oota-llvm.git] / test / CodeGen / Hexagon / newvaluejump2.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv5 -disable-hexagon-misched < %s \
2 ; RUN:    | FileCheck %s
3 ; Check that we generate new value jump, both registers, with one 
4 ; of the registers as new.
5
6 @Reg = common global i32 0, align 4
7 define i32 @main() nounwind {
8 entry:
9 ; CHECK: if (cmp.gt(r{{[0-9]+}}, r{{[0-9]+}}.new)) jump:{{[t|nt]}} .LBB{{[0-9]+}}_{{[0-9]+}}
10   %Reg2 = alloca i32, align 4
11   %0 = load i32, i32* %Reg2, align 4
12   %1 = load i32, i32* @Reg, align 4
13   %tobool = icmp sle i32 %0, %1
14   br i1 %tobool, label %if.then, label %if.else
15
16 if.then:
17   call void @bar(i32 1, i32 2)
18   br label %if.end
19
20 if.else:
21   call void @baz(i32 10, i32 20)
22   br label %if.end
23
24 if.end:
25   ret i32 0
26 }
27
28 declare void @bar(i32, i32)
29 declare void @baz(i32, i32)