aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-27 23:26:39 +0930
committerAlan Modra <amodra@gcc.gnu.org>2015-08-27 23:26:39 +0930
commit353e462df7eea26f1df8343d8b8f92dfe97757dc (patch)
tree7ec4111cbfa2505d1b20fe6d1d63de87f4d845de /gcc/config
parentf11cd82983ce681fd1f6bd232abcc91297d4e855 (diff)
downloadgcc-353e462df7eea26f1df8343d8b8f92dfe97757dc.zip
gcc-353e462df7eea26f1df8343d8b8f92dfe97757dc.tar.gz
gcc-353e462df7eea26f1df8343d8b8f92dfe97757dc.tar.bz2
[RS6000] Correct constraints for ior<mode>_mask
ior<mode>_mask always splits to rtl matching rotl<mode>3_insert. The latter requires one of its input operands match the output, so let reload/lra know the equivalent operand match must also occur for ior<mode>_mask. PR target/67356 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0" for operand 1. From-SVN: r227260
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 48abc26..cfdb286 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -3683,7 +3683,7 @@
; an insert instruction, in many cases.
(define_insn_and_split "*ior<mode>_mask"
[(set (match_operand:GPR 0 "gpc_reg_operand" "=r")
- (ior:GPR (match_operand:GPR 1 "gpc_reg_operand" "r")
+ (ior:GPR (match_operand:GPR 1 "gpc_reg_operand" "0")
(match_operand:GPR 2 "const_int_operand" "n")))
(clobber (match_scratch:GPR 3 "=r"))]
"!logical_const_operand (operands[2], <MODE>mode)