Hexagon: Test case to check if branch probabilities are properly reflected in
[oota-llvm.git] / test / CodeGen / Hexagon / pred-absolute-store.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2 ; Check that we are able to predicate instructions with abosolute
3 ; addressing mode.
4
5 ; CHECK: if{{ *}}(p{{[0-3]+}}){{ *}}memw(##gvar){{ *}}={{ *}}r{{[0-9]+}}
6
7 @gvar = external global i32
8 define i32 @test2(i32 %a, i32 %b) nounwind {
9 entry:
10   %cmp = icmp eq i32 %a, %b
11   br i1 %cmp, label %if.then, label %if.end
12
13 if.then:
14   store i32 %a, i32* @gvar, align 4
15   br label %if.end
16
17 if.end:
18   ret i32 %b
19 }