2015-03-10 07:08:46 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
2013-02-13 00:06:23 +08:00
|
|
|
; Check that we are able to predicate instructions with abosolute
|
|
|
|
; addressing mode.
|
2015-03-10 07:08:46 +08:00
|
|
|
; CHECK: if ({{!*}}p{{[0-2]}}.new) memw(##gvar) = r{{[0-9]+}}
|
2013-02-13 00:06:23 +08:00
|
|
|
|
|
|
|
@gvar = external global i32
|
|
|
|
define i32 @test2(i32 %a, i32 %b) nounwind {
|
|
|
|
entry:
|
|
|
|
%cmp = icmp eq i32 %a, %b
|
|
|
|
br i1 %cmp, label %if.then, label %if.end
|
|
|
|
|
|
|
|
if.then:
|
|
|
|
store i32 %a, i32* @gvar, align 4
|
|
|
|
br label %if.end
|
|
|
|
|
|
|
|
if.end:
|
|
|
|
ret i32 %b
|
|
|
|
}
|