Displaying 3 results from an estimated 3 matches for "2bytes".
Did you mean:
bytes
2012 Apr 25
2
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
...defining OR16 function, the .S is not generated and claims that it
cannot select OR instruction.
So I added OR16 (that's the or BC,DE piece of code).
But problem is that I am using the first two lines:
ld HL, 8
add HL,SP
For FrameIndex and the HL register will contain SP which is only two 2bytes
aligned.
So "OR with 1" will work, but for second assigned :OR with 2" will not work.
I suspect that llc is assuming that HL will contain 8 (that's the start) and
or-ing 8 with 1 or with 2 is ok.
But my HL has also added SP to it.
This is how my ISD::FrameIndex instruction loo...
2012 Apr 25
0
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
...ted and claims that it
> cannot select OR instruction.
> So I added OR16 (that's the or BC,DE piece of code).
>
> But problem is that I am using the first two lines:
>
> ld HL, 8
> add HL,SP
>
> For FrameIndex and the HL register will contain SP which is only two
> 2bytes aligned.
> So "OR with 1" will work, but for second assigned :OR with 2" will not
> work.
>
> I suspect that llc is assuming that HL will contain 8 (that's the start)
> and or-ing 8 with 1 or with 2 is ok.
> But my HL has also added SP to it.
> This is how my...
2012 Apr 25
1
[LLVMdev] LLVM Backend for Z80. ADD -> replaced -> OR
...elect OR instruction.
>> So I added OR16 (that's the or BC,DE piece of code).
>>
>> But problem is that I am using the first two lines:
>>
>> ld HL, 8
>> add HL,SP
>>
>> For FrameIndex and the HL register will contain SP which is only two
>> 2bytes aligned.
>> So "OR with 1" will work, but for second assigned :OR with 2" will not
>> work.
>>
>> I suspect that llc is assuming that HL will contain 8 (that's the start)
>> and or-ing 8 with 1 or with 2 is ok.
>> But my HL has also added SP to...