[i386] : Merge a couple of attributes in atom.md

Submitted by Uros Bizjak on Oct. 8, 2012, 8:50 p.m.


Message ID CAFULd4Y8EMrp2+DocZqhKAqZo+wwvbZuYMKbLVxFaN0QJvVXGA@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Oct. 8, 2012, 8:50 p.m.

2012-10-08  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
	(atom_sse_5): Ditto.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.


Patch hide | download patch | download mbox

Index: config/i386/atom.md
--- config/i386/atom.md	(revision 192222)
+++ config/i386/atom.md	(working copy)
@@ -544,16 +544,14 @@ 
 (define_insn_reservation  "atom_sse_4" 1
   (and (eq_attr "cpu" "atom")
        (and (eq_attr "type" "sse")
-            (ior (eq_attr "atom_sse_attr" "fence")
-                 (eq_attr "atom_sse_attr" "prefetch"))))
+            (eq_attr "atom_sse_attr" "fence,prefetch")))
 ;; rcpps, rsqrtss, sqrt, ldmxcsr
 (define_insn_reservation  "atom_sse_5" 7
   (and (eq_attr "cpu" "atom")
        (and (eq_attr "type" "sse")
-            (ior (ior (eq_attr "atom_sse_attr" "sqrt")
-                      (eq_attr "atom_sse_attr" "mxcsr"))
+            (ior (eq_attr "atom_sse_attr" "sqrt,mxcsr")
                  (and (eq_attr "atom_sse_attr" "rcp")
                       (eq_attr "mode" "V4SF")))))
   "atom-complex, atom-all-eu*6")