blob: 07adb3fe49d5b006727696e04964f81e56d03532 [file] [log] [blame]
Jyotsna Vermaa6962392013-04-23 17:11:46 +00001; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2; Check that we generate absolute addressing mode instructions
3; with immediate value.
4
5define i32 @f1(i32 %i) nounwind {
6; CHECK: memw(##786432){{ *}}={{ *}}r{{[0-9]+}}
7entry:
8 store volatile i32 %i, i32* inttoptr (i32 786432 to i32*), align 262144
9 ret i32 %i
10}
11
12define i32* @f2(i32* nocapture %i) nounwind {
13entry:
14; CHECK: r{{[0-9]+}}{{ *}}={{ *}}memw(##786432)
David Blaikiea79ac142015-02-27 21:17:42 +000015 %0 = load volatile i32, i32* inttoptr (i32 786432 to i32*), align 262144
Jyotsna Vermaa6962392013-04-23 17:11:46 +000016 %1 = inttoptr i32 %0 to i32*
17 ret i32* %1
18 }