xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/store-global-address.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | grep movl | count 1
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@dst = global i32 0             ; <i32*> [#uses=1]
4*9880d681SAndroid Build Coastguard Worker@ptr = global i32* null         ; <i32**> [#uses=1]
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @test() {
7*9880d681SAndroid Build Coastguard Worker        store i32* @dst, i32** @ptr
8*9880d681SAndroid Build Coastguard Worker        ret void
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11