xref: /llvm-project/llvm/test/CodeGen/X86/store-global-address.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3
4@dst = global i32 0             ; <ptr> [#uses=1]
5@ptr = global ptr null         ; <ptr> [#uses=1]
6
7define void @test() {
8; CHECK-LABEL: test:
9; CHECK:       # %bb.0:
10; CHECK-NEXT:    movl $dst, ptr
11; CHECK-NEXT:    retl
12        store ptr @dst, ptr @ptr
13        ret void
14}
15
16