[PATCH] D11748: Fix FBLD and FBSTP

Marina Yatsina marina.yatsina at intel.com
Tue Aug 4 00:51:50 PDT 2015


myatsina created this revision.
myatsina added a reviewer: spyffe.
myatsina added a subscriber: llvm-commits.
myatsina set the repository for this revision to rL LLVM.


FBLD and FBSTP should receive TBYTE because it is defined as
FBLD m80
FBSTP m80


Repository:
  rL LLVM

http://reviews.llvm.org/D11748

Files:
  lib/Target/X86/X86InstrFPStack.td
  test/MC/X86/intel-syntax.s

Index: lib/Target/X86/X86InstrFPStack.td
===================================================================
--- lib/Target/X86/X86InstrFPStack.td
+++ lib/Target/X86/X86InstrFPStack.td
@@ -311,8 +311,8 @@
 def FICOM16m : FPI<0xDE, MRM2m, (outs), (ins i16mem:$src), "ficom{s}\t$src">;
 def FICOMP16m: FPI<0xDE, MRM3m, (outs), (ins i16mem:$src), "ficomp{s}\t$src">;
 
-def FBLDm    : FPI<0xDF, MRM4m, (outs), (ins f32mem:$src), "fbld\t$src">;
-def FBSTPm   : FPI<0xDF, MRM6m, (outs f32mem:$dst), (ins), "fbstp\t$dst">;
+def FBLDm    : FPI<0xDF, MRM4m, (outs), (ins f80mem:$src), "fbld\t$src">;
+def FBSTPm   : FPI<0xDF, MRM6m, (outs f80mem:$dst), (ins), "fbstp\t$dst">;
 
 // Floating point cmovs.
 class FpIf32CMov<dag outs, dag ins, FPFormat fp, list<dag> pattern> :
Index: test/MC/X86/intel-syntax.s
===================================================================
--- test/MC/X86/intel-syntax.s
+++ test/MC/X86/intel-syntax.s
@@ -681,3 +681,8 @@
 // CHECK: outsb (%rsi), %dx
 // CHECK: outsw (%rsi), %dx
 // CHECK: outsl (%rsi), %dx
+
+fbld tbyte ptr [eax]
+fbstp tbyte ptr [eax]
+// CHECK: fbld (%eax)
+// CHECK: fbstp (%eax)
\ No newline at end of file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11748.31298.patch
Type: text/x-patch
Size: 1179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150804/44d97027/attachment.bin>


More information about the llvm-commits mailing list