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: Add TImode calculation


On Mon, Dec 03, 2001 at 02:54:53PM +0100, Bo Thorsen wrote:
> 	* config/i386/i386.md: Add TImode addition and subtraction for
> 	x86-64.

Ok.


> +(define_insn "*addti3_1"
> +  [(set (match_operand:TI 0 "nonimmediate_operand" "=r,o")
> +	(plus:TI (match_operand:TI 1 "nonimmediate_operand" "%0,0")
> +		 (match_operand:TI 2 "general_operand" "roi,ri")))
> +   (clobber (reg:CC 17))]
> +  "TARGET_64BIT && ix86_binary_operator_ok (PLUS, TImode, operands)"
> +  "#")
> +
> +(define_split
> +  [(set (match_operand:TI 0 "nonimmediate_operand" "")
> +	(plus:TI (match_operand:TI 1 "nonimmediate_operand" "")
> +		 (match_operand:TI 2 "general_operand" "")))
> +   (clobber (reg:CC 17))]
> +  "reload_completed && TARGET_64BIT"

Prefer define_insn_and_split.


r~


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