1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker@ptr = global i32* null 4*9880d681SAndroid Build Coastguard Worker@dst = global [131072 x i32] zeroinitializer 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind { 7*9880d681SAndroid Build Coastguard Worker; This store should fold to a single mov instruction. 8*9880d681SAndroid Build Coastguard Worker; CHECK: movq $dst+64, ptr(%rip) 9*9880d681SAndroid Build Coastguard Worker store i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr 10*9880d681SAndroid Build Coastguard Worker ret void 11*9880d681SAndroid Build Coastguard Worker} 12