aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2019-07-01 20:39:13 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2019-07-01 20:39:13 +0200
commitf98342adf9330522067172f2d9da5b82278d9a70 (patch)
tree99ef051e6929f84143285926eac72338a001fedb /gcc
parentd1fcc7f3afb12b55265c0b8b9522fe257c9a0098 (diff)
downloadgcc-f98342adf9330522067172f2d9da5b82278d9a70.zip
gcc-f98342adf9330522067172f2d9da5b82278d9a70.tar.gz
gcc-f98342adf9330522067172f2d9da5b82278d9a70.tar.bz2
rs6000.md (ctr<mode>): Make this a parameterized name.
@ctr<mode> * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name. (doloop_end): Use that name. Simplify. From-SVN: r272899
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.md18
2 files changed, 10 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71f9c59..5da03c3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
+ * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
+ (doloop_end): Use that name. Simplify.
+
+2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
+
* config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
parameterized name.
(indirect_jump): Use that name. Simplify.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index d70362e..56f5350 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -12572,22 +12572,14 @@
(use (match_operand 1))] ; label
""
{
- if (TARGET_64BIT)
- {
- if (GET_MODE (operands[0]) != DImode)
- FAIL;
- emit_jump_insn (gen_ctrdi (operands[0], operands[1]));
- }
- else
- {
- if (GET_MODE (operands[0]) != SImode)
- FAIL;
- emit_jump_insn (gen_ctrsi (operands[0], operands[1]));
- }
+ if (GET_MODE (operands[0]) != Pmode)
+ FAIL;
+
+ emit_jump_insn (gen_ctr (Pmode, operands[0], operands[1]));
DONE;
})
-(define_expand "ctr<mode>"
+(define_expand "@ctr<mode>"
[(parallel [(set (pc)
(if_then_else (ne (match_operand:P 0 "register_operand")
(const_int 1))