https://bugs.llvm.org/show_bug.cgi?id=42976
Luís Marques <l...@luismarques.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
CC| |l...@luismarques.eu
--- Comment #1 from Luís Marques <l...@luismarques.eu> ---
This works correctly:
$ cat test.c
void foo() {
asm ("fadd.s f1, f2, f3");
asm ("fadd.d fa0, fa1, fa2");
}
$ clang --target=riscv32 -O2 -S test.c -o-
(...)
foo: # @foo
# %bb.0: # %entry
#APP
fadd.s f1, f2, f3
#NO_APP
#APP
fadd.d fa0, fa1, fa2
#NO_APP
ret
(...)
If anything, I wonder if that works more than it should, since we accept that
inline assembly even when not targetting the floating-point extensions.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs