1; RUN: llc -march=hexagon < %s | FileCheck %s
2; Check that we are able to predicate instructions with absolute
3; addressing mode.
4; CHECK: if ({{!?}}p{{[0-3]}}.new) memw(##gvar) = r{{[0-9]+}}
5
6@gvar = external global i32
7define i32 @test2(i32 %a, i32 %b) nounwind {
8entry:
9  %cmp = icmp eq i32 %a, %b
10  br i1 %cmp, label %if.then, label %if.end
11
12if.then:
13  store i32 %a, i32* @gvar, align 4
14  br label %if.end
15
16if.end:
17  ret i32 %b
18}
19