diff options
author | Segher Boessenkool <segher@gcc.gnu.org> | 2019-07-01 20:35:23 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2019-07-01 20:35:23 +0200 |
commit | 0254f29ad9610a3e11ee89d56b4a21c48db147d8 (patch) | |
tree | b878956e39f89b954c1615824fbb70270816c800 /gcc | |
parent | 7b8795a138d0baa3b0505baee2ed05ae266977cd (diff) | |
download | gcc-0254f29ad9610a3e11ee89d56b4a21c48db147d8.zip gcc-0254f29ad9610a3e11ee89d56b4a21c48db147d8.tar.gz gcc-0254f29ad9610a3e11ee89d56b4a21c48db147d8.tar.bz2 |
rs6000.md (neg<mode>2): Make this a parameterized name.
@neg<mode>2
* config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
(allocate_stack): Use that name. Simplify.
From-SVN: r272894
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a3bad8c..c158a08 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-01 Segher Boessenkool <segher@kernel.crashing.org> + + * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name. + (allocate_stack): Use that name. Simplify. + 2019-07-01 Martin Sebor <msebor@redhat.com> PR middle-end/90923 @@ -5,7 +10,7 @@ (hash_map::get_or_insert): Same. Reformat comment. * hash-set.h (hash_set::add): On insertion invoke element ctor. * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New. - * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New. + * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New. * hash-table.h (hash_table::operator=): Prevent copy assignment. (hash_table::hash_table (const hash_table&)): Use copy ctor instead of assignment to copy elements. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 5947a43..233b896 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2249,7 +2249,7 @@ [(set_attr "type" "add")]) -(define_insn "neg<mode>2" +(define_insn "@neg<mode>2" [(set (match_operand:GPR 0 "gpc_reg_operand" "=r") (neg:GPR (match_operand:GPR 1 "gpc_reg_operand" "r")))] "" @@ -9816,10 +9816,7 @@ { operands[1] = force_reg (Pmode, operands[1]); neg_op0 = gen_reg_rtx (Pmode); - if (TARGET_32BIT) - emit_insn (gen_negsi2 (neg_op0, operands[1])); - else - emit_insn (gen_negdi2 (neg_op0, operands[1])); + emit_insn (gen_neg2 (Pmode, neg_op0, operands[1])); } else neg_op0 = GEN_INT (-INTVAL (operands[1])); |