mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 21:01:29 +00:00
sparc64: replace parentheses in pmul()
`>>' has a higher precedence than `?' so src2 evaluated to either 16 or 0 dependent on the bits set in rs2. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4eb0c00b62
commit
88b938e63e
@ -617,7 +617,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
|||||||
rs2 = fps_regval(f, RS2(insn));
|
rs2 = fps_regval(f, RS2(insn));
|
||||||
|
|
||||||
rd_val = 0;
|
rd_val = 0;
|
||||||
src2 = (rs2 >> (opf == FMUL8x16AU_OPF) ? 16 : 0);
|
src2 = rs2 >> (opf == FMUL8x16AU_OPF ? 16 : 0);
|
||||||
for (byte = 0; byte < 4; byte++) {
|
for (byte = 0; byte < 4; byte++) {
|
||||||
u16 src1 = (rs1 >> (byte * 8)) & 0x00ff;
|
u16 src1 = (rs1 >> (byte * 8)) & 0x00ff;
|
||||||
u32 prod = src1 * src2;
|
u32 prod = src1 * src2;
|
||||||
|
Loading…
Reference in New Issue
Block a user