[llvm-commits] [llvm] r76025 - /llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td
Anton Korobeynikov
asl at math.spbu.ru
Thu Jul 16 07:22:01 PDT 2009
Author: asl
Date: Thu Jul 16 09:21:57 2009
New Revision: 76025
URL: http://llvm.org/viewvc/llvm-project?rev=76025&view=rev
Log:
Implement fp_to_sint
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td
Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td?rev=76025&r1=76024&r2=76025&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrFP.td Thu Jul 16 09:21:57 2009
@@ -152,11 +152,24 @@
def FCONVFP64r32: Pseudo<(outs FP64:$dst), (ins GR32:$src),
"cdfbr\t{$dst, $src}",
[(set FP64:$dst, (sint_to_fp GR32:$src))]>;
-
def FCONVFP64 : Pseudo<(outs FP64:$dst), (ins GR64:$src),
"cdgbr\t{$dst, $src}",
[(set FP64:$dst, (sint_to_fp GR64:$src))]>;
+def FCONVGR32 : Pseudo<(outs GR32:$dst), (ins FP32:$src),
+ "cfebr\t{$dst, $src}",
+ [(set GR32:$dst, (fp_to_sint FP32:$src))]>;
+def FCONVGR32r64: Pseudo<(outs GR32:$dst), (ins FP64:$src),
+ "cgebr\t{$dst, $src}",
+ [(set GR32:$dst, (fp_to_sint FP64:$src))]>;
+
+def FCONVGR64r32: Pseudo<(outs GR64:$dst), (ins FP32:$src),
+ "cfdbr\t{$dst, $src}",
+ [(set GR64:$dst, (fp_to_sint FP32:$src))]>;
+def FCONVGR64 : Pseudo<(outs GR64:$dst), (ins FP64:$src),
+ "cgdbr\t{$dst, $src}",
+ [(set GR64:$dst, (fp_to_sint FP64:$src))]>;
+
//===----------------------------------------------------------------------===//
// Test instructions (like AND but do not produce any result)
More information about the llvm-commits
mailing list