1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; Check that we generate absolute addressing mode instructions
3 ; with immediate value.
5 define i32 @f1(i32 %i) nounwind {
6 ; CHECK: memw(##786432) = r{{[0-9]+}}
8 store volatile i32 %i, ptr inttoptr (i32 786432 to ptr), align 262144
12 define ptr @f2(ptr nocapture %i) nounwind {
14 ; CHECK: r{{[0-9]+}} = memw(##786432)
15 %0 = load volatile i32, ptr inttoptr (i32 786432 to ptr), align 262144
16 %1 = inttoptr i32 %0 to ptr