Some CPUs are already overriding these sign extension instructions but we should be able to use the WriteALU schedule class by default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Note that WriteALU means 1 cycle latency using Port 0156
This is true for CBW, CDQE and CWDE.
However, CQO and CDQ do not use port0156 and CWD takes 2 cycles and 2 ports.
See below:
iform: , latency: ports:
XED_IFORM_CBW 1 0156
XED_IFORM_CDQE 1 0156
XED_IFORM_CWDE 1 0156
XED_IFORM_CQO 1 06
XED_IFORM_CDQ 1 06
XED_IFORM_CWD 2 06, 0156
Comment Actions
So do you want me add a fix for the SB model? What about the SLM are you happy with it using the defaults?
Comment Actions
@gadi.haber Does that match what you were after? IIRC you auto-generate X86SchedSandyBridge.td - will my edit cause a problem?