summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrFP.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:21:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:21:57 +0000
commit55e96fb1c67316cd5e28ebb16075fe6c9adbe0de (patch)
treee47b56699aadc5254f9ea55941af3621dd604494 /lib/Target/SystemZ/SystemZInstrFP.td
parent92ac82abb457354045c0d776e681fa69c589d5e9 (diff)
downloadllvm-55e96fb1c67316cd5e28ebb16075fe6c9adbe0de.tar.gz
llvm-55e96fb1c67316cd5e28ebb16075fe6c9adbe0de.tar.bz2
llvm-55e96fb1c67316cd5e28ebb16075fe6c9adbe0de.tar.xz
Implement fp_to_sint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrFP.td')
-rw-r--r--lib/Target/SystemZ/SystemZInstrFP.td15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrFP.td b/lib/Target/SystemZ/SystemZInstrFP.td
index ffbb950036..ce704cbb09 100644
--- a/lib/Target/SystemZ/SystemZInstrFP.td
+++ b/lib/Target/SystemZ/SystemZInstrFP.td
@@ -152,11 +152,24 @@ def FCONVFP32r64: Pseudo<(outs FP32:$dst), (ins GR64:$src),
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)