mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Implement fp_to_sint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
92ac82abb4
commit
55e96fb1c6
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user