This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PR68432 17/22] Use code,alternative attributes for s390
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Nov 2015 12:33:10 +0000
- Subject: [PR68432 17/22] Use code,alternative attributes for s390
- Authentication-results: sourceware.org; auth=none
- References: <874mgajmo9 dot fsf at e105548-lin dot cambridge dot arm dot com>
Tested as described in the covering note. I plan to commit this as obvious
if the prerequisites are approved.
gcc/
* config/s390/s390.md (cpu_facility): Turn into a code,alternative
attribute.
(enabled): Likewise.
diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md
index a5335ca..aca5233 100644
--- a/gcc/config/s390/s390.md
+++ b/gcc/config/s390/s390.md
@@ -437,7 +437,8 @@
(define_attr "cpu_facility"
"standard,ieee,zarch,cpu_zarch,longdisp,extimm,dfp,z10,z196,zEC12,vec"
- (const_string "standard"))
+ (const_string "standard")
+ "code,alternative")
(define_attr "enabled" ""
(cond [(eq_attr "cpu_facility" "standard")
@@ -482,7 +483,8 @@
(and (eq_attr "cpu_facility" "vec")
(match_test "TARGET_VX"))
(const_int 1)]
- (const_int 0)))
+ (const_int 0))
+ "code,alternative")
;; Pipeline description for z900. For lack of anything better,
;; this description is also used for the g5 and g6.