1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -relocation-model=static -code-model=small | FileCheck %s
4 @dst = external dso_local global [131072 x i32]
5 @ptr = external dso_local global ptr
7 define void @off01(i64 %i) nounwind {
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: leaq dst+64(,%rdi,4), %rax
11 ; CHECK-NEXT: movq %rax, ptr(%rip)
14 %.sum = add i64 %i, 16
15 %0 = getelementptr [131072 x i32], ptr @dst, i64 0, i64 %.sum
16 store ptr %0, ptr @ptr, align 8