aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2016-07-11 19:03:09 +0000
committerPat Haugen <pthaugen@gcc.gnu.org>2016-07-11 19:03:09 +0000
commit7f0d7d6155b6ef87b9a8e404a556222d22f844f8 (patch)
tree9892d26d9bd5aeac7cb813cea145add232643043 /gcc/config
parent827424041e867b19577eb46f8d8651239c41839f (diff)
downloadgcc-7f0d7d6155b6ef87b9a8e404a556222d22f844f8.zip
gcc-7f0d7d6155b6ef87b9a8e404a556222d22f844f8.tar.gz
gcc-7f0d7d6155b6ef87b9a8e404a556222d22f844f8.tar.bz2
rs6000.md (stfiwx): Change constraint to 'wu' to prevent generation of 'stxsiwx' on pre Power8 hardware.
* config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to prevent generation of 'stxsiwx' on pre Power8 hardware. From-SVN: r238223
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 5d212dd..5afae92 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -5747,9 +5747,11 @@
})
; An UNSPEC is used so we don't have to support SImode in FP registers.
+; The 'wu' constraint is used for the 2nd alternative to ensure stxsiwx
+; is only generated for Power8 or later.
(define_insn "stfiwx"
[(set (match_operand:SI 0 "memory_operand" "=Z,Z")
- (unspec:SI [(match_operand:DI 1 "gpc_reg_operand" "d,wv")]
+ (unspec:SI [(match_operand:DI 1 "gpc_reg_operand" "d,wu")]
UNSPEC_STFIWX))]
"TARGET_PPC_GFXOPT"
"@