diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:21:57 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:21:57 +0000 |
| commit | 430ab4f382b55e2d841a71b9a9750e19e0c57b12 (patch) | |
| tree | 803aae2eaf27ef718ce769beea0946fd901fc91c /llvm/lib/Target | |
| parent | 345e08d24c18d198880581065292954a2c539dc0 (diff) | |
| download | bcm5719-llvm-430ab4f382b55e2d841a71b9a9750e19e0c57b12.tar.gz bcm5719-llvm-430ab4f382b55e2d841a71b9a9750e19e0c57b12.zip | |
Implement fp_to_sint
llvm-svn: 76025
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrFP.td | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrFP.td b/llvm/lib/Target/SystemZ/SystemZInstrFP.td index ffbb9500362..ce704cbb097 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrFP.td +++ b/llvm/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) |

