golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.25k stars 17.7k forks source link

x/build: set up builders simulating old processors #17478

Open bradfitz opened 8 years ago

bradfitz commented 8 years ago

We occasionally get a bug report from users that some assembly code (often in runtime or crypto or compression) causes a SIGILL.

We should run builders (perhaps in qemu?) simulating older processors so we can exercise all the assembly fallback paths and CPU detection code.

bradfitz commented 7 years ago

As a starting build, @saljam made a qemu builder in the past:

https://github.com/golang/build/tree/master/env/linux-arm-qemu

Using it as a model, an x86-on-x86 builder would be interesting, masking away certain CPU features.

josharian commented 7 years ago

This would also be helpful for a theoretical future RISC-V builder.