mburkley / tms9900-gcc

gcc cross-compiler for TMS9900
GNU General Public License v3.0
13 stars 1 forks source link

Segfault with debug turned on #39

Closed XZCE closed 9 months ago

XZCE commented 9 months ago

https://github.com/mburkley/tms9900-gcc/blob/88427213e3293d27ff17414b5d158f3dcf1e1679/dev/gcc-4.4.0/gcc/config/tms9900/tms9900.md#L1808-L1833

There's only 2 operands to print in these cases.

Looking good though with the latest changes :)

mburkley commented 9 months ago

Thanks, fixed on 1.29 branch

XZCE commented 9 months ago

Closing as fixed...

Sheesh, don't be sad on AtariAge about the swpb issue, seems to me you worked out the bool postByteSwap flag which if true means you just need "mov" before it, else you need "movb" without it. I.E. never make sense to do movb+swpb.

mburkley commented 9 months ago

Thanks. Yep, exactly right, I figured that out after I saw this but thanks anyway.

Only sad it be seeing yet another regression :-) Working on this compiler is always 2 steps forward 1 step backwards but we'll get there.