mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
14 lines
199 B
LLVM
14 lines
199 B
LLVM
|
; Uninitialized values are not handled correctly.
|
||
|
;
|
||
|
; RUN: as < %s | opt -mem2reg
|
||
|
;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
int "test"()
|
||
|
begin
|
||
|
%X = alloca int ; To be promoted
|
||
|
%Y = load int* %X
|
||
|
ret int %Y
|
||
|
end
|