Displaying 3 results from an estimated 3 matches for "datalyout".
Did you mean:
datalayout
2012 Apr 25
1
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
...#39;t help.
Then I changed llc to show TargetDataLayout and found that a option is set
to a0:0:64.
So I changed my Z80DataLayout to a0:0:16. And voila, it started to work and
ADD was not longer replaced by OR. Only for add+1 to or, which is correct.
So now I don't understand that a option in datalyout.
According doc it is alignment for aggregate type.
But anyhow thanks for help and pointing me in right direction.
Peter.
On Wed, Apr 25, 2012 at 4:31 PM, Fan Dawei <fandawei.s at gmail.com> wrote:
> Hi Peter,
>
> I think the problem is that you did not explicitly define stack al...
2012 Apr 25
0
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
Hi Peter,
I think the problem is that you did not explicitly define stack alignment
in Z80TargetMachine.cpp
DataLayout("e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8-n8")
Try to add S16 to the string if your stack is 2-byte aligned. Refer to
http://llvm.org/docs/LangRef.html#datalayout .
If it does not work, try to specify the layout in the input module using
target layout directive.
David
On
2012 Apr 25
2
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
Hello.
I am playing with LLVM and trying to make Z80 (Zilog Z80) backend.
The source code is attached.
I have succesfully made some simple test. But now I have problem with ADD
instruction.
The source C code is:
typedef struct
{
unsigned char id1;
unsigned char id2;
unsigned char id3;
} testS;
void simple()
{
testS test;
test.id1 = 0x40;
test.id2 = 0x80;
test.id3 = 0xc0;
}
It