aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.md
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.ibm.com>2019-11-28 00:55:38 +0000
committerMichael Meissner <meissner@linux.ibm.com>2019-11-28 00:55:38 +0000
commitb337363affee81845439f163feaa6fa0a430be7e (patch)
treec560d45d52619958abe6f12ccdb1e4f966c28554 /gcc/config/rs6000/rs6000.md
parente9c799779cfead621587e816b61d2195c0145ac9 (diff)
Generate PADDI for 34-bit adds when -mcpu=future is used.ibm/pcrel-trunk
2019-11-27 Michael Meissner <meissner@linux.ibm.com> * config/rs6000/predicates.md (add_operand): Allow constants that satisfy the eI constraint. * config/rs6000/rs6000.md (add<mode>3, GPR iterator): Add support for PADDI. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/pcrel-trunk@278798 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.md')
-rw-r--r--gcc/config/rs6000/rs6000.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 22a70f033db..2308f0ad6ef 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -1761,15 +1761,17 @@
})
(define_insn "*add<mode>3"
- [(set (match_operand:GPR 0 "gpc_reg_operand" "=r,r,r")
- (plus:GPR (match_operand:GPR 1 "gpc_reg_operand" "%r,b,b")
- (match_operand:GPR 2 "add_operand" "r,I,L")))]
+ [(set (match_operand:GPR 0 "gpc_reg_operand" "=r,r,r,r")
+ (plus:GPR (match_operand:GPR 1 "gpc_reg_operand" "%r,b,b,b")
+ (match_operand:GPR 2 "add_operand" "r,I,L,eI")))]
""
"@
add %0,%1,%2
addi %0,%1,%2
- addis %0,%1,%v2"
- [(set_attr "type" "add")])
+ addis %0,%1,%v2
+ addi %0,%1,%2"
+ [(set_attr "type" "add")
+ (set_attr "isa" "*,*,*,fut")])
(define_insn "*addsi3_high"
[(set (match_operand:SI 0 "gpc_reg_operand" "=b")