/usr/src/gcc-7/debian/patches/thunderx2t99-pipe-sched.diff is in gcc-7-source 7.3.0-16ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | # DP: aarch64-thunderx2: Add pipeline/scheduling info for missing insn types.
diff -urpN a/src/gcc/config/aarch64/thunderx2t99.md b/src/gcc/config/aarch64/thunderx2t99.md
--- a/src/gcc/config/aarch64/thunderx2t99.md 2018-01-08 19:07:26.219493873 -0500
+++ b/src/gcc/config/aarch64/thunderx2t99.md 2018-01-08 19:24:18.772835187 -0500
@@ -69,9 +69,30 @@
(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.
@@ -87,7 +108,7 @@
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
@@ -155,7 +176,7 @@
(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
|