This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
PFA patch created using "git format-patch -1". Please commit it.
-----Original Message-----
From: Andreas Schwab [mailto:schwab@linux-m68k.org]
Sent: Friday, June 26, 2015 11:33 PM
To: Pawar, Amit
Cc: H.J. Lu; binutils@sourceware.org; Jan Beulich
Subject: Re: [PATH] AMD MWAITX enablement
"Pawar, Amit" <Amit.Pawar@amd.com> writes:
> @@ -3347,6 +3349,34 @@ process_immext (void)
> i.operands = 0;
> }
>
> + if (i.tm.cpu_flags.bitfield.cpumwaitx && i.operands > 0)
> + {
> + /* MONITORX/MWAITX instructions have fixed operands with an opcode
> + suffix which is coded in the same place as an 8-bit immediate field
> + would be.
> + Here we check those operands and remove them afterwards. */
> + unsigned int x;
> +
> + if (i.operands != 3)
> + abort();
> +
> + for (x = 0; x < 2; x++)
> + if (register_number (i.op[x].regs) != x)
> + goto bad_register_operand;
> +
> + /* Check for third operand for mwaitx/monitorx insn*/
> + if (register_number (i.op[x].regs) !=
> + (x + (i.tm.extension_opcode == 0xfb)))
Line break before operator, not after.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Attachment:
0001-MWAITX-CPU.patch
Description: 0001-MWAITX-CPU.patch
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |