Emit proper rounding mode for fp_to_sint
authorAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:25:12 +0000 (14:25 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:25:12 +0000 (14:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZInstrFP.td

index 390104cf590686378ffbff4c258e37ac31b1c82e..9e367fe43a583bb64b9ab57f82bcfca9de186ce4 100644 (file)
@@ -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]