mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Emit proper rounding mode for fp_to_sint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a9959fd4e
commit
4971e1ebb7
@ -277,20 +277,20 @@ def FCONVFP64 : Pseudo<(outs FP64:$dst), (ins GR64:$src),
|
||||
(implicit PSW)]>;
|
||||
|
||||
def FCONVGR32 : Pseudo<(outs GR32:$dst), (ins FP32:$src),
|
||||
"cfebr\t{$dst, $src}",
|
||||
"cfebr\t{$dst, 5, $src}",
|
||||
[(set GR32:$dst, (fp_to_sint FP32:$src)),
|
||||
(implicit PSW)]>;
|
||||
def FCONVGR32r64: Pseudo<(outs GR32:$dst), (ins FP64:$src),
|
||||
"cgebr\t{$dst, $src}",
|
||||
"cgebr\t{$dst, 5, $src}",
|
||||
[(set GR32:$dst, (fp_to_sint FP64:$src)),
|
||||
(implicit PSW)]>;
|
||||
|
||||
def FCONVGR64r32: Pseudo<(outs GR64:$dst), (ins FP32:$src),
|
||||
"cfdbr\t{$dst, $src}",
|
||||
"cfdbr\t{$dst, 5, $src}",
|
||||
[(set GR64:$dst, (fp_to_sint FP32:$src)),
|
||||
(implicit PSW)]>;
|
||||
def FCONVGR64 : Pseudo<(outs GR64:$dst), (ins FP64:$src),
|
||||
"cgdbr\t{$dst, $src}",
|
||||
"cgdbr\t{$dst, 5, $src}",
|
||||
[(set GR64:$dst, (fp_to_sint FP64:$src)),
|
||||
(implicit PSW)]>;
|
||||
} // Defs = [PSW]
|
||||
|
Loading…
x
Reference in New Issue
Block a user