blob: 3e5e98270d53605ce7a744ef814d46c8ffcfcf67 [file] [log] [blame]
Colin LeMahieufa791102015-03-09 23:08:46 +00001; RUN: llc -march=hexagon < %s | FileCheck %s
Jyotsna Verma39f7a2b2013-02-12 16:06:23 +00002; Check that we are able to predicate instructions with abosolute
3; addressing mode.
Colin LeMahieufa791102015-03-09 23:08:46 +00004; CHECK: if ({{!*}}p{{[0-2]}}.new) memw(##gvar) = r{{[0-9]+}}
Jyotsna Verma39f7a2b2013-02-12 16:06:23 +00005
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}