Skip to contentSkip to conversation

tcg-optimize: Fold sub r,0,x to neg r,x

PATCH Richard Henderson 2 participants 2 messages Mar 20, 2013 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Blue Swirl
Quoted 7 lines
Quoted 6 lines
---
 tcg/optimize.c | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

I noticed this while looking at other dumps. This seems like it should be considered independently of the other patch series.

This breaks Sparc32 boot, only a few first instructions are executed.

I can't replicate any failure with the sparc-test image. Can you expand on a method to replicate this?

r~

#3 lore raw
Quoted 7 lines · Richard Henderson
Quoted 6 lines · Blue Swirl
Quoted 6 lines
Quoted 4 lines
---
 tcg/optimize.c | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

I noticed this while looking at other dumps. This seems like it should be considered independently of the other patch series.

This breaks Sparc32 boot, only a few first instructions are executed.

I can't replicate any failure with the sparc-test image. Can you expand on a method to replicate this?

It was just with qemu-system-sparc -d in_asm. Unpatched can get to OpenBIOS prompt, patched does not leave boot mode, PC always < 0x6000.

Quoted 3 lines

r~