brintos

brintos / llvm-project-archived public Read only

0
0
Text · 512 B · 3288d8a Raw
19 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; Check that we generate absolute addressing mode instructions3; with immediate value.4 5define i32 @f1(i32 %i) nounwind {6; CHECK: memw(##786432) = r{{[0-9]+}}7entry:8  store volatile i32 %i, ptr inttoptr (i32 786432 to ptr), align 2621449  ret i32 %i10}11 12define ptr @f2(ptr nocapture %i) nounwind {13entry:14; CHECK: r{{[0-9]+}} = memw(##786432)15  %0 = load volatile i32, ptr inttoptr (i32 786432 to ptr), align 26214416  %1 = inttoptr i32 %0 to ptr17  ret ptr %118  }19