[PATCH] D11748: Fix FBLD and FBSTP

Marina Yatsina via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 04:52:22 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL245553: [X86] Fix FBLD and FBSTP (authored by myatsina).

Changed prior to commit:
  http://reviews.llvm.org/D11748?vs=31323&id=32682#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11748

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

Index: llvm/trunk/test/MC/X86/intel-syntax.s
===================================================================
--- llvm/trunk/test/MC/X86/intel-syntax.s
+++ llvm/trunk/test/MC/X86/intel-syntax.s
@@ -714,3 +714,8 @@
 // CHECK: comiss (%eax), %xmm0
 // CHECK: vcomisd (%eax), %xmm0
 // CHECK: vcomiss (%eax), %xmm0
+
+fbld tbyte ptr [eax]
+fbstp tbyte ptr [eax]
+// CHECK: fbld (%eax)
+// CHECK: fbstp (%eax)
Index: llvm/trunk/lib/Target/X86/X86InstrFPStack.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrFPStack.td
+++ llvm/trunk/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> :


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11748.32682.patch
Type: text/x-patch
Size: 1209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150820/7e837bc0/attachment.bin>


More information about the llvm-commits mailing list