2015-06-14 05:46:39 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
2013-04-24 01:11:46 +08:00
|
|
|
; Check that we generate absolute addressing mode instructions
|
|
|
|
; with immediate value.
|
|
|
|
|
|
|
|
define i32 @f1(i32 %i) nounwind {
|
2018-03-07 03:07:21 +08:00
|
|
|
; CHECK: memw(##786432) = r{{[0-9]+}}
|
2013-04-24 01:11:46 +08:00
|
|
|
entry:
|
|
|
|
store volatile i32 %i, i32* inttoptr (i32 786432 to i32*), align 262144
|
|
|
|
ret i32 %i
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32* @f2(i32* nocapture %i) nounwind {
|
|
|
|
entry:
|
2018-03-07 03:07:21 +08:00
|
|
|
; CHECK: r{{[0-9]+}} = memw(##786432)
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load volatile i32, i32* inttoptr (i32 786432 to i32*), align 262144
|
2013-04-24 01:11:46 +08:00
|
|
|
%1 = inttoptr i32 %0 to i32*
|
|
|
|
ret i32* %1
|
|
|
|
}
|