This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Qualify operand mode in i386.md to suppress warning
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Samuel Tardieu <sam at rfc1149 dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 27 Oct 2007 18:10:44 +0200
- Subject: Re: [PATCH] Qualify operand mode in i386.md to suppress warning
- References: <20071027121625.466ECC405C@mail2.rfc1149.net>
On Sat, Oct 27, 2007 at 12:52:53PM +0200, Samuel Tardieu wrote:
> (define_insn "x86_movsicc_0_m1"
> [(set (match_operand:SI 0 "register_operand" "=r")
> - (if_then_else:SI (match_operand 1 "ix86_carry_flag_operator" "")
> + (if_then_else:SI (match_operand:SI 1 "ix86_carry_flag_operator" "")
Sure it will suppress the warning (I thought we had two of them?), but
will it still work? Try this with -O2 -S -dp:
int usesbb (unsigned int a, unsigned int b)
{
return (a < b ? -1 : 0);
}
You should see x86_movsicc_0_m1 in the output.
--
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year