Commit 521ca78e by H.J. Lu Committed by H.J. Lu

Replace q_regs_operand with QIreg_operand in QI ext patterns.

2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/49142
	* config/i386/i386.md (*movqi_extv_1_rex64): Remove
	"register_operand" check and replace q_regs_operand with
	QIreg_operand in "type" calculation.
	(*movqi_extv_1): Likewise.
	(*movqi_extzv_2_rex64): Likewise.
	(*movqi_extzv_2): Likewise.

	* config/i386/predicates.md (QIreg_operand): New.

From-SVN: r174211
parent 29f8b844
2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
PR target/49142
* config/i386/i386.md (*movqi_extv_1_rex64): Remove
"register_operand" check and replace q_regs_operand with
QIreg_operand in "type" calculation.
(*movqi_extv_1): Likewise.
(*movqi_extzv_2_rex64): Likewise.
(*movqi_extzv_2): Likewise.
* config/i386/predicates.md (QIreg_operand): New.
2011-05-25 Richard Guenther <rguenther@suse.de> 2011-05-25 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
......
...@@ -2488,10 +2488,9 @@ ...@@ -2488,10 +2488,9 @@
} }
} }
[(set (attr "type") [(set (attr "type")
(if_then_else (and (match_operand:QI 0 "register_operand" "") (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" ""))
(ior (not (match_operand:QI 0 "q_regs_operand" "")) (ne (symbol_ref "TARGET_MOVX")
(ne (symbol_ref "TARGET_MOVX") (const_int 0)))
(const_int 0))))
(const_string "imovx") (const_string "imovx")
(const_string "imov"))) (const_string "imov")))
(set (attr "mode") (set (attr "mode")
...@@ -2515,10 +2514,9 @@ ...@@ -2515,10 +2514,9 @@
} }
} }
[(set (attr "type") [(set (attr "type")
(if_then_else (and (match_operand:QI 0 "register_operand" "") (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" ""))
(ior (not (match_operand:QI 0 "q_regs_operand" "")) (ne (symbol_ref "TARGET_MOVX")
(ne (symbol_ref "TARGET_MOVX") (const_int 0)))
(const_int 0))))
(const_string "imovx") (const_string "imovx")
(const_string "imov"))) (const_string "imov")))
(set (attr "mode") (set (attr "mode")
...@@ -2553,7 +2551,7 @@ ...@@ -2553,7 +2551,7 @@
} }
} }
[(set (attr "type") [(set (attr "type")
(if_then_else (ior (not (match_operand:QI 0 "q_regs_operand" "")) (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" ""))
(ne (symbol_ref "TARGET_MOVX") (ne (symbol_ref "TARGET_MOVX")
(const_int 0))) (const_int 0)))
(const_string "imovx") (const_string "imovx")
...@@ -2580,10 +2578,9 @@ ...@@ -2580,10 +2578,9 @@
} }
} }
[(set (attr "type") [(set (attr "type")
(if_then_else (and (match_operand:QI 0 "register_operand" "") (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" ""))
(ior (not (match_operand:QI 0 "q_regs_operand" "")) (ne (symbol_ref "TARGET_MOVX")
(ne (symbol_ref "TARGET_MOVX") (const_int 0)))
(const_int 0))))
(const_string "imovx") (const_string "imovx")
(const_string "imov"))) (const_string "imov")))
(set (attr "mode") (set (attr "mode")
......
...@@ -82,6 +82,10 @@ ...@@ -82,6 +82,10 @@
(and (match_code "reg") (and (match_code "reg")
(match_test "REGNO (op) == FLAGS_REG"))) (match_test "REGNO (op) == FLAGS_REG")))
;; Return true if op is one of QImode registers: %[abcd][hl].
(define_predicate "QIreg_operand"
(match_test "QI_REG_P (op)"))
;; Return true if op is a QImode register operand other than ;; Return true if op is a QImode register operand other than
;; %[abcd][hl]. ;; %[abcd][hl].
(define_predicate "ext_QIreg_operand" (define_predicate "ext_QIreg_operand"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment