Issue 55514
Summary riscv missing support for tied operands in inline asm
Labels backend:RISC-V
Assignees
Reporter nickdesaulniers
    example:
```c
void foo (void) {
    int bar;
    asm("# foo":"+r"(bar) : "0"(bar));
}
```
```
$ clang -O2 --target=riscv64--
<source>:3:29: error: invalid input constraint '0' in asm
    asm("# foo":"+r"(bar) : "0"(bar));
                            ^
```
Curiously, this code produces an error for riscv gcc unless optimizations are enabled. via
https://github.com/ClangBuiltLinux/linux/issues/1641

cc @nathanchance @topperc @asb 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to