mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
ARM sched model: Add VFP div instruction on Swift
Reapply 183271. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0efc78257b
commit
873ff29514
@ -2043,6 +2043,22 @@ let SchedModel = SwiftModel in {
|
||||
(instregex "VST4LN(d|q)(8|16|32)_UPD",
|
||||
"VST4LN(d|q)(8|16|32)Pseudo_UPD")>;
|
||||
|
||||
// 4.2.44 VFP, Divide and Square Root
|
||||
def SwiftDiv17 : SchedWriteRes<[SwiftUnitP0, SwiftUnitDiv]> {
|
||||
let NumMicroOps = 1;
|
||||
let Latency = 17;
|
||||
let ResourceCycles = [1, 15];
|
||||
}
|
||||
def SwiftDiv32 : SchedWriteRes<[SwiftUnitP0, SwiftUnitDiv]> {
|
||||
let NumMicroOps = 1;
|
||||
let Latency = 32;
|
||||
let ResourceCycles = [1, 30];
|
||||
}
|
||||
def : InstRW<[SwiftDiv17], (instregex "VDIVS", "VSQRTS")>;
|
||||
def : InstRW<[SwiftDiv32], (instregex "VDIVD", "VSQRTD")>;
|
||||
|
||||
// Not specified.
|
||||
def : InstRW<[SwiftWriteP01OneCycle2x], (instregex "ABS")>;
|
||||
// Preload.
|
||||
def : WriteRes<WritePreLd, [SwiftUnitP2]> { let Latency = 0;
|
||||
let ResourceCycles = [0];
|
||||
|
Loading…
Reference in New Issue
Block a user