mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
51a0437b16
other x86 segments. address space 0 is stack/default, 1-255 are reserved for client use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62980 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
294 B
LLVM
9 lines
294 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 | grep gs
|
|
|
|
define i32 @foo() nounwind readonly {
|
|
entry:
|
|
%tmp = load i32* addrspace(256)* getelementptr (i32* addrspace(256)* inttoptr (i32 72 to i32* addrspace(256)*), i32 31) ; <i32*> [#uses=1]
|
|
%tmp1 = load i32* %tmp ; <i32> [#uses=1]
|
|
ret i32 %tmp1
|
|
}
|