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 3 4@dst = external dso_local global [131072 x i32] 5@ptr = external dso_local global i32* 6 7define void @off01(i64 %i) nounwind { 8; CHECK-LABEL: off01: 9; CHECK: # %bb.0: # %entry 10; CHECK-NEXT: leaq dst+64(,%rdi,4), %rax 11; CHECK-NEXT: movq %rax, ptr(%rip) 12; CHECK-NEXT: retq 13entry: 14 %.sum = add i64 %i, 16 15 %0 = getelementptr [131072 x i32], [131072 x i32]* @dst, i64 0, i64 %.sum 16 store i32* %0, i32** @ptr, align 8 17 ret void 18} 19