From: Segher Boessenkool Date: Mon, 1 Jul 2019 18:45:36 +0000 (+0200) Subject: rs6000.md (abs2_hw): Make this a parameterized name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dca369ba28de3a4074d011c4f067def7cd4553ba;p=gcc.git rs6000.md (abs2_hw): Make this a parameterized name. @abs2_hw * config/rs6000/rs6000.md (abs2_hw): Make this a parameterized name. (abs2): Use that name. Simplify. From-SVN: r272905 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac7b8da98f6..b36c001d37c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (abs2_hw): Make this a parameterized + name. + (abs2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (neg2_hw): Make this a parameterized diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index f3a6e554b35..0eec35ec866 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8123,12 +8123,7 @@ { if (TARGET_FLOAT128_HW) { - if (mode == TFmode) - emit_insn (gen_abstf2_hw (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_abskf2_hw (operands[0], operands[1])); - else - FAIL; + emit_insn (gen_abs2_hw (mode, operands[0], operands[1])); DONE; } else if (TARGET_FLOAT128_TYPE) @@ -13914,7 +13909,7 @@ (set_attr "size" "128")]) -(define_insn "abs2_hw" +(define_insn "@abs2_hw" [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v") (abs:IEEE128 (match_operand:IEEE128 1 "altivec_register_operand" "v")))]