summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrFP.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:27:01 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:27:01 +0000
commit05a0b8bc661b5a1565c54e021c353ef191fa3f61 (patch)
tree720a5dc1f38060ce2037eef42b198e3c5b76fe53 /lib/Target/SystemZ/SystemZInstrFP.td
parentb6831cb044a7f3dccd5ad80cd36b98175b9646ad (diff)
downloadllvm-05a0b8bc661b5a1565c54e021c353ef191fa3f61.tar.gz
llvm-05a0b8bc661b5a1565c54e021c353ef191fa3f61.tar.bz2
llvm-05a0b8bc661b5a1565c54e021c353ef191fa3f61.tar.xz
Handle bitconverts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrFP.td')
-rw-r--r--lib/Target/SystemZ/SystemZInstrFP.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrFP.td b/lib/Target/SystemZ/SystemZInstrFP.td
index 9e367fe43a..5972264d1e 100644
--- a/lib/Target/SystemZ/SystemZInstrFP.td
+++ b/lib/Target/SystemZ/SystemZInstrFP.td
@@ -295,6 +295,13 @@ def FCONVGR64 : Pseudo<(outs GR64:$dst), (ins FP64:$src),
(implicit PSW)]>;
} // Defs = [PSW]
+def FBCONVG64 : Pseudo<(outs GR64:$dst), (ins FP64:$src),
+ "lgdr\t{$dst, $src}",
+ [(set GR64:$dst, (bitconvert FP64:$src))]>;
+def FBCONVF64 : Pseudo<(outs FP64:$dst), (ins GR64:$src),
+ "ldgr\t{$dst, $src}",
+ [(set FP64:$dst, (bitconvert GR64:$src))]>;
+
//===----------------------------------------------------------------------===//
// Test instructions (like AND but do not produce any result)