From: Jakub Jelinek Date: Wed, 10 Sep 2008 06:23:57 +0000 (+0200) Subject: i386.md (SWI32): New mode iterator. X-Git-Tag: releases/gcc-4.4.0~2522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e7f50e5e4100546f2579cc0a8779a5cad4061e2;p=thirdparty%2Fgcc.git i386.md (SWI32): New mode iterator. * config/i386/i386.md (SWI32): New mode iterator. (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead of SWI. From-SVN: r140189 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d07d85d0e291..09aaa2821a41 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-09-10 Jakub Jelinek + + * config/i386/i386.md (SWI32): New mode iterator. + (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead + of SWI. + 2008-09-09 Vladimir Makarov PR rtl-optimization/37435 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 976bc727e457..66d186686f77 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -652,6 +652,9 @@ ;; All single word integer modes. (define_mode_iterator SWI [QI HI SI (DI "TARGET_64BIT")]) +;; Single word integer modes up to SImode. +(define_mode_iterator SWI32 [QI HI SI]) + ;; Instruction suffix for integer modes. (define_mode_attr imodesuffix [(QI "b") (HI "w") (SI "l") (DI "q")]) @@ -14271,8 +14274,8 @@ (define_insn "*jcc_fused_1" [(set (pc) (if_then_else (match_operator 1 "comparison_operator" - [(match_operand:SWI 2 "register_operand" "") - (match_operand:SWI 3 "const0_operand" "")]) + [(match_operand:SWI32 2 "register_operand" "") + (match_operand:SWI32 3 "const0_operand" "")]) (label_ref (match_operand 0 "" "")) (pc)))] "TARGET_FUSE_CMP_AND_BRANCH && !TARGET_64BIT" @@ -14286,8 +14289,8 @@ (define_insn "*jcc_fused_2" [(set (pc) (if_then_else (match_operator 1 "comparison_operator" - [(match_operand:SWI 2 "register_operand" "") - (match_operand:SWI 3 "const0_operand" "")]) + [(match_operand:SWI32 2 "register_operand" "") + (match_operand:SWI32 3 "const0_operand" "")]) (pc) (label_ref (match_operand 0 "" ""))))] "TARGET_FUSE_CMP_AND_BRANCH && !TARGET_64BIT" @@ -14302,8 +14305,8 @@ [(set (pc) (if_then_else (match_operator 1 "ix86_comparison_uns_operator" - [(match_operand:SWI 2 "nonimmediate_operand" ",m,") - (match_operand:SWI 3 "" ",,m")]) + [(match_operand:SWI32 2 "nonimmediate_operand" ",m,") + (match_operand:SWI32 3 "" ",,m")]) (label_ref (match_operand 0 "" "")) (pc)))] "TARGET_FUSE_CMP_AND_BRANCH && !TARGET_64BIT @@ -14320,8 +14323,8 @@ [(set (pc) (if_then_else (match_operator 1 "ix86_comparison_uns_operator" - [(match_operand:SWI 2 "nonimmediate_operand" ",m,") - (match_operand:SWI 3 "" ",,m")]) + [(match_operand:SWI32 2 "nonimmediate_operand" ",m,") + (match_operand:SWI32 3 "" ",,m")]) (pc) (label_ref (match_operand 0 "" ""))))] "TARGET_FUSE_CMP_AND_BRANCH && !TARGET_64BIT