https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100178
Jim Wilson <wilson at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wilson at gcc dot gnu.org --- Comment #1 from Jim Wilson <wilson at gcc dot gnu.org> --- This looks similar to 85185. Same problem with a short type not working correctly as an operand to an asm, and RISC-V is not the only target that the code fails for. I would suggest avoiding using char/short with an asm until someone figures out how to fix this. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85185