[Bug target/92821] Miscompilation when passing 8-bit enum to extern function
emilio at crisal dot io
gcc-bugzilla@gcc.gnu.org
Thu Dec 5 13:12:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92821
--- Comment #3 from Emilio Cobos Álvarez (:emilio) <emilio at crisal dot io> ---
If my reading of https://godbolt.org/z/BNHxEY is correct (sorry, still a bit of
a noob with disassembly), it looks like GCC does correctly load only the low
byte in the equivalent implementation of the Rust function, but clang does
assume zero-extension to 32 bit... :/
More information about the Gcc-bugs
mailing list