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

login
register
mail settings
Submitter Uros Bizjak
Date Oct. 8, 2012, 8:50 p.m.
Message ID <CAFULd4Y8EMrp2+DocZqhKAqZo+wwvbZuYMKbLVxFaN0QJvVXGA@mail.gmail.com>
Download mbox | patch
Permalink /patch/190121/
State New
Headers show

Comments

Uros Bizjak - Oct. 8, 2012, 8:50 p.m.
Hello!

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.

Uros.

Patch

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")))
   "atom-simple-0")
 
 ;; 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")