News for hackers. Stuff that matters.
Re:We found a bug in Go's ARM64 compiler by Someone on Thursday October 09, 2025 @04:11AM (#45524905)
Is that possible? I think you would have [1] to use a register to build up the immediate value. The assembler cannot/should not default to one, so I think the best one could do is having another macro for ADD that takes that helper register as an argument. That wouldn’t fix other instances in the AArch64 assembly code.

[1] I’m not familiar with AMD64, but maybe, you could use a thread local or reserve space in the stack frame for it, too, but I don’t see those as realistic options

There are no comments on this comment yet.