Displaying 2 results from an estimated 2 matches for "storesp".
Did you mean:
stores
2010 Nov 18
0
[LLVMdev] Writing a backend for the ZPU
...n set. I'm can't
get a handle on how to translate this hack to llvm so far.
A typical ZPU machine code add might look something like this:
a = a + b + 123;
=>
loadsp 16 # push value at memory location sp+16 onto stack
loadsp 24 # another value
add
im 123
add
storesp 20 # store back to original location. Notice 16+4=20
LLVM represents the above as something like:
(set a, (add (add a,b), 123)
--
Øyvind Harboe
Can Zylin Consulting help on your project?
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 A...
2010 Nov 19
0
[LLVMdev] Fw: Writing a backend for the ZPU
...k
>
> to llvm so far.
A typical ZPU machine code add might look
> something
> like this:
a = a + b +
> 123;
=>
loadsp
> 16 # push value at
> memory location sp+16 onto stack
loadsp 24 #
> another
> value
add
im 123
>
> add
storesp 20 # store back to original location. Notice
>
> 16+4=20
LLVM represents the above as something
> like:
(set a,
> (add (add a,b), 123)
Actually it represents
> the code like this:
%1=load i32 @a
%2=load i32 @b
%3=add i32 %1,
> %2
%4=add i32 %3, 123
store i32 %4, i32 @a...