Skip to content
Snippets Groups Projects
Commit 31ed1665 authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

re PR rtl-optimization/70467 (Useless "and [esp],-1" emitted on AND with uint64_t variable)


	PR rtl-optimization/70467
	* config/i386/predicates.md (x86_64_hilo_int_operand,
	x86_64_hilo_general_operand): New predicates.
	* config/i386/constraints.md (Wd): New constraint.
	* config/i386/i386.md (mode attr di): Use Wd instead of e.
	(general_hilo_operand): New mode attr.
	(add<mode>3, sub<mode>3): Use <general_hilo_operand>
	instead of <general_operand>.
	(*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
	x86_64_hilo_general_operand instead of <general_operand>.

	* gcc.target/i386/pr70467-3.c: New test.
	* gcc.target/i386/pr70467-4.c: New test.

Co-Authored-By: default avatarUros Bizjak <ubizjak@gmail.com>

From-SVN: r235816
parent e7437b59
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment