19 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -relocation-model=static -code-model=small | FileCheck %s3 4@dst = external dso_local global [131072 x i32]5@ptr = external dso_local global ptr6 7define void @off01(i64 %i) nounwind {8; CHECK-LABEL: off01:9; CHECK: # %bb.0: # %entry10; CHECK-NEXT: leaq dst+64(,%rdi,4), %rax11; CHECK-NEXT: movq %rax, ptr(%rip)12; CHECK-NEXT: retq13entry:14 %.sum = add i64 %i, 1615 %0 = getelementptr [131072 x i32], ptr @dst, i64 0, i64 %.sum16 store ptr %0, ptr @ptr, align 817 ret void18}19