mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-09 15:57:28 +00:00
11 lines
219 B
LLVM
11 lines
219 B
LLVM
|
; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 1234567'
|
||
|
|
||
|
int %test() {
|
||
|
%V = alloca int
|
||
|
store int 1234567, int* %V
|
||
|
%V2 = cast int* %V to sbyte*
|
||
|
store sbyte 0, sbyte* %V2
|
||
|
%X = load int* %V
|
||
|
ret int %X
|
||
|
}
|