This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] Qualify operand mode in i386.md to suppress warning


On 27/10, Rask Ingemann Lambertsen wrote:

| 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.

Good point :)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]