summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-11-28 16:57:20 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-11-28 16:57:20 +0000
commitece5bc358a243fcbc74f92883f37110980b0ac04 (patch)
treebc944c6aa0b39c8f4ff26cc78af83752bc625708 /llvm/lib
parent1bfcba8ceaf3c8dc9b2443e61b8649c3506ca2f0 (diff)
downloadbcm5719-llvm-ece5bc358a243fcbc74f92883f37110980b0ac04.tar.gz
bcm5719-llvm-ece5bc358a243fcbc74f92883f37110980b0ac04.zip
[X86][X87] Tag FTST x87 instruction scheduler class
Looking through Agner, FTST is very similar to generic float compare behaviour, so I've added them to the existing IIC_FCOMI (WriteFAdd) tags. llvm-svn: 319184
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86InstrFPStack.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrFPStack.td b/llvm/lib/Target/X86/X86InstrFPStack.td
index 1ac62a74bce..00e85553254 100644
--- a/llvm/lib/Target/X86/X86InstrFPStack.td
+++ b/llvm/lib/Target/X86/X86InstrFPStack.td
@@ -327,7 +327,8 @@ def TST_Fp64 : FpIf64<(outs), (ins RFP64:$src), OneArgFP, []>;
def TST_Fp80 : FpI_<(outs), (ins RFP80:$src), OneArgFP, []>;
} // hasSideEffects
-def TST_F : FPI<0xD9, MRM_E4, (outs), (ins), "ftst">;
+let SchedRW = [WriteFAdd] in
+def TST_F : FPI<0xD9, MRM_E4, (outs), (ins), "ftst", IIC_FCOMI>;
} // Defs = [FPSW]
// Versions of FP instructions that take a single memory operand. Added for the
OpenPOWER on IntegriCloud