https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110821
Bug ID: 110821
Summary: gcc inline asm for the riscv architecture with the BNE
(and possibly other instructions)
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: devnexen at gmail dot com
Target Milestone: ---
Hi, sorry I'm new here I assume 14.0 means master ?
Anyway it seems there is a bug with risc-v architecture (tried with 32 bits)
with the bne instruction
(https://riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf) expects "bne
, , ".
Issue with gcc is passes without the comma as you can experience here
https://godbolt.org/z/G9EY84qG3
but fails rightfully with clang.
Thanks in advance.