thunderx2-t99.md (thunderx2t99_branch): Add trap to reservation.
authorSteve Ellcey <sellcey@cavium.com>
Tue, 5 Dec 2017 18:47:00 +0000 (18:47 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Tue, 5 Dec 2017 18:47:00 +0000 (18:47 +0000)
2017-12-05  Steve Ellcey  <sellcey@cavium.com>

* config/aarch64/thunderx2-t99.md (thunderx2t99_branch): Add trap
to reservation.
(thunderx2t99_nothing): New insn reservation.
(thunderx2t99_mrs): New insn reservation.
(thunderx2t99_multiple): New insn reservation.
(thunderx2t99_alu_basi): Add bfx to reservation.
(thunderx2t99_fp_cmp): Add fccmps and fccmpd to reservation.

From-SVN: r255431

gcc/ChangeLog
gcc/config/aarch64/thunderx2t99.md

index d47c575763a0deee62d0039af6491115e1c2607f..603f7f0cf5819f96a600e94e8d766996d5de25b0 100644 (file)
@@ -1,3 +1,13 @@
+2017-12-05  Steve Ellcey  <sellcey@cavium.com>
+
+       * config/aarch64/thunderx2-t99.md (thunderx2t99_branch): Add trap
+       to reservation.
+       (thunderx2t99_nothing): New insn reservation.
+       (thunderx2t99_mrs): New insn reservation.
+       (thunderx2t99_multiple): New insn reservation.
+       (thunderx2t99_alu_basi): Add bfx to reservation.
+       (thunderx2t99_fp_cmp): Add fccmps and fccmpd to reservation.
+
 2017-12-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        PR target/82248
index 5bcf4ff9484fb6e52454cabca0c6f79807d48487..6d2785c759b71a8ccd5b4117f19a21f2154e1f42 100644 (file)
 
 (define_insn_reservation "thunderx2t99_branch" 1
   (and (eq_attr "tune" "thunderx2t99")
-       (eq_attr "type" "call,branch"))
+       (eq_attr "type" "call,branch,trap"))
   "thunderx2t99_i2")
 
+;; Misc instructions.
+
+(define_insn_reservation "thunderx2t99_nothing" 0
+  (and (eq_attr "tune" "thunderx2t99")
+       (eq_attr "type" "no_insn,block"))
+  "nothing")
+
+(define_insn_reservation "thunderx2t99_mrs" 0
+  (and (eq_attr "tune" "thunderx2t99")
+       (eq_attr "type" "mrs"))
+  "thunderx2t99_i2")
+
+(define_insn_reservation "thunderx2t99_multiple" 1
+  (and (eq_attr "tune" "thunderx2t99")
+       (eq_attr "type" "multiple"))
+  "thunderx2t99_i0+thunderx2t99_i1+thunderx2t99_i2+thunderx2t99_ls0+\
+   thunderx2t99_ls1+thunderx2t99_sd+thunderx2t99_i1m1+thunderx2t99_i1m2+\
+   thunderx2t99_i1m3+thunderx2t99_ls0d1+thunderx2t99_ls0d2+thunderx2t99_ls0d3+\
+   thunderx2t99_ls1d1+thunderx2t99_ls1d2+thunderx2t99_ls1d3+thunderx2t99_f0+\
+   thunderx2t99_f1")
+
 ;; Integer arithmetic/logic instructions.
 
 ; Plain register moves are handled by renaming, and don't create any uops.
                        adc_reg,adc_imm,adcs_reg,adcs_imm,\
                        logic_reg,logic_imm,logics_reg,logics_imm,\
                        csel,adr,mov_imm,shift_reg,shift_imm,bfm,\
-                       rbit,rev,extend,rotate_imm"))
+                       bfx,rbit,rev,extend,rotate_imm"))
   "thunderx2t99_i012")
 
 (define_insn_reservation "thunderx2t99_alu_shift" 2
 
 (define_insn_reservation "thunderx2t99_fp_cmp" 5
   (and (eq_attr "tune" "thunderx2t99")
-       (eq_attr "type" "fcmps,fcmpd"))
+       (eq_attr "type" "fcmps,fcmpd,fccmps,fccmpd"))
   "thunderx2t99_f01")
 
 (define_insn_reservation "thunderx2t99_fp_divsqrt_s" 16