mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
10 lines
208 B
LLVM
10 lines
208 B
LLVM
|
; RUN: llvm-as < %s | llc -march=x86
|
||
|
|
||
|
define void @foo(i2011* %x, i2011* %y, i2011* %p) nounwind {
|
||
|
%a = load i2011* %x
|
||
|
%b = load i2011* %y
|
||
|
%c = add i2011 %a, %b
|
||
|
store i2011 %c, i2011* %p
|
||
|
ret void
|
||
|
}
|