Skip to content

Commit cf241be

Browse files
Claudiu Zissulescuartemiy-volkov
authored andcommitted
arc64: Fix xbfu.f operands
1 parent c0ded7b commit cf241be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/config/arc64/arc64.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,8 +2030,8 @@ vfins, vfsub, vfmul, vfdiv, vfrep, vpack, xbfu, xor, xorl"
20302030
{
20312031
int assemble_op2 = (((INTVAL (operands[1]) - 1) & 0x1f) << 5)
20322032
| (INTVAL (operands[2]) & 0x1f);
2033-
operands[2] = GEN_INT (assemble_op2);
2034-
return "xbfu.f\\t0,%1,%2";
2033+
operands[1] = GEN_INT (assemble_op2);
2034+
return "xbfu.f\\t0,%0,%1";
20352035
}
20362036
[(set_attr "type" "xbfu")
20372037
(set_attr "length" "8")])

0 commit comments

Comments
 (0)