From e470affed023863f9fe24ddfeb07d20ba646d0f8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 25 May 2011 19:27:56 +0000 Subject: [PATCH] Put back "register_operand" check in 32bit QI ext patterns. 2011-05-25 H.J. Lu * config/i386/i386.md (*movqi_extv_1)): Put back "register_operand" check in "type" calculation. (*movqi_extzv_2): Likewise. From-SVN: r174223 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.md | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed1834f23d5..1afef8e1ee0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-25 H.J. Lu + + * config/i386/i386.md (*movqi_extv_1)): Put back + "register_operand" check in "type" calculation. + (*movqi_extzv_2): Likewise. + 2011-05-25 H.J. Lu * doc/extend.texi (X86 Built-in Functions): Update pause diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 1cdbe7e430b..13a1cded196 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -2514,9 +2514,10 @@ } } [(set (attr "type") - (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" "")) - (ne (symbol_ref "TARGET_MOVX") - (const_int 0))) + (if_then_else (and (match_operand:QI 0 "register_operand" "") + (ior (not (match_operand:QI 0 "QIreg_operand" "")) + (ne (symbol_ref "TARGET_MOVX") + (const_int 0)))) (const_string "imovx") (const_string "imov"))) (set (attr "mode") @@ -2578,9 +2579,10 @@ } } [(set (attr "type") - (if_then_else (ior (not (match_operand:QI 0 "QIreg_operand" "")) - (ne (symbol_ref "TARGET_MOVX") - (const_int 0))) + (if_then_else (and (match_operand:QI 0 "register_operand" "") + (ior (not (match_operand:QI 0 "QIreg_operand" "")) + (ne (symbol_ref "TARGET_MOVX") + (const_int 0)))) (const_string "imovx") (const_string "imov"))) (set (attr "mode") -- 2.30.2