From 117e7a717962c330d6b003896b837302231298a0 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 16 Jul 2009 14:25:12 +0000 Subject: [PATCH] Emit proper rounding mode for fp_to_sint llvm-svn: 76037 --- lib/Target/SystemZ/SystemZInstrFP.td | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/SystemZ/SystemZInstrFP.td b/lib/Target/SystemZ/SystemZInstrFP.td index 390104cf590..9e367fe43a5 100644 --- a/lib/Target/SystemZ/SystemZInstrFP.td +++ b/lib/Target/SystemZ/SystemZInstrFP.td @@ -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]