| Issue |
172969
|
| Summary |
Mips: should not use $1 for inline asm
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
qethu
|
```
define i32 @f() local_unnamed_addr {
entry:
%0 = tail call i32 asm sideeffect "divu ${0}, ${1}, ${2}", "=r,r,r,~{hi},~{lo},~{$1}"(i32 2, i32 1)
ret i32 %0
}
```
we get
```
addiu $1, $zero, 2 # here, we should not use $1 here, as $1 may be used when expand macros.
addiu $3, $zero, 1
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs