]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
leon.md (leon_load): Enable for all LEON variants if -mfix-ut699 is not specified.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 30 Jun 2015 11:05:35 +0000 (11:05 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 30 Jun 2015 11:05:35 +0000 (11:05 +0000)
* config/sparc/leon.md (leon_load): Enable for all LEON variants if
-mfix-ut699 is not specified.
(leon3_load): Rename into...
(ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
is specified.

From-SVN: r225176

gcc/ChangeLog
gcc/config/sparc/leon.md

index 2eaddf52d75fe35759046c0e0f0912480dc9e195..2b921c5b160102b38591f4a92a52566c1aeafde2 100644 (file)
@@ -1,3 +1,11 @@
+2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/sparc/leon.md (leon_load): Enable for all LEON variants if
+       -mfix-ut699 is not specified.
+       (leon3_load): Rename into...
+       (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
+       is specified.
+
 2015-06-28  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        Backport from mainline
index ad22e3b592d82df6ffcaa45157c679dcba7292b6..52bd978ef912646916f3e9c33fbce9f58eda49b2 100644 (file)
 (define_cpu_unit "leon_memory" "leon")
 
 (define_insn_reservation "leon_load" 1
-  (and (eq_attr "cpu" "leon") (eq_attr "type" "load,sload"))
+  (and (eq_attr "cpu" "leon,leon3,leon3v7")
+       (and (eq_attr "fix_ut699" "false") (eq_attr "type" "load,sload")))
   "leon_memory")
 
 ;; Use a double reservation to work around the load pipeline hazard on UT699.
-(define_insn_reservation "leon3_load" 1
-  (and (eq_attr "cpu" "leon3,leon3v7") (eq_attr "type" "load,sload"))
+(define_insn_reservation "ut699_load" 1
+  (and (eq_attr "cpu" "leon,leon3,leon3v7")
+       (and (eq_attr "fix_ut699" "true") (eq_attr "type" "load,sload")))
   "leon_memory*2")
 
 (define_insn_reservation "leon_store" 2