1- //===-- RISCVSchedGenericOOO.td - Generic O3 Processor - ----*- tablegen -*-===//
1+ //===-- RISCVSchedGenericOOO.td - Generic OOO Processor ----*- tablegen -*-===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
1313// * IXU (Integer ALU Unit): 4 units, only one can execute mul/div.
1414// * FXU (Floating-point Unit): 2 units.
1515// * LSU (Load/Store Unit): 2 units.
16- // * VXU (Vector Unit): 1 unit.
1716// * Latency:
1817// * Integer instructions: 1 cycle.
1918// * Multiplication instructions: 4 cycles.
2019// * Division instructions: 13-21 cycles.
2120// * Floating-point instructions: 2-6 cycles.
2221// * Floating-point fdiv/fsqrt instructions: 9-21 cycles.
23- // * Vector instructions: 2-6 cycles.
2422// * Load/Store:
2523// * IXU: 4 cycles.
2624// * FXU: 4 cycles.
27- // * VXU: 6 cycles.
2825// * Integer/floating-point/vector div/rem/sqrt/... are non-pipelined.
26+ //
27+ // TODO: Add vector scheduling.
2928//===----------------------------------------------------------------------===//
3029
3130def GenericOOOModel : SchedMachineModel {
@@ -49,8 +48,6 @@ def GenericOOOLSU : ProcResource<2>;
4948def GenericOOOFMulDiv : ProcResource<1>;
5049def GenericOOOFloat : ProcResource<1>;
5150def GenericOOOFPU : ProcResGroup<[GenericOOOFMulDiv, GenericOOOFloat]>;
52- // TODO: Add vector scheduling.
53- // def GenericOOOVXU : ProcResource<1>;
5451
5552//===----------------------------------------------------------------------===//
5653// Branches
@@ -318,10 +315,10 @@ let Latency = 2 in {
318315
319316// Other than Zfhmin
320317let Latency = 2 in {
321- def : WriteRes<WriteFCvtI64ToF16, []>;
322- def : WriteRes<WriteFCvtI32ToF16, []>;
323- def : WriteRes<WriteFCvtF16ToI64, []>;
324- def : WriteRes<WriteFCvtF16ToI32, []>;
318+ def : WriteRes<WriteFCvtI64ToF16, [GenericOOOFPU ]>;
319+ def : WriteRes<WriteFCvtI32ToF16, [GenericOOOFPU ]>;
320+ def : WriteRes<WriteFCvtF16ToI64, [GenericOOOFPU ]>;
321+ def : WriteRes<WriteFCvtF16ToI32, [GenericOOOFPU ]>;
325322}
326323
327324// Arithmetic and logic
0 commit comments