Commit d0b9d78
committed
[MC][Mips] Fix wrong assumption about
While trying to evaluate the branch of this MIPS (EL) non-branch
instruction: `ldxc1 $f2, $4($7)` the function fails on the assert:
`assert(isImm() && ...)`.
This commit ensures that the operand is an immediate before accessing the
value.
- Triple: `mipsel-unknown-linux-gnu-elf` with '+mips32r2'
- Instruction: `ldxc1 $f2, $4($7)`
- Raw instruction: `0x81, 0x0, 0xe4, 0x4c`Immediate operand.1 parent a9eb8f0 commit d0b9d78
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
0 commit comments