From 59e12ed78962266a9529e58560aeb57330c67d38 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 14 Oct 2004 19:39:35 +0000 Subject: [PATCH] Add FSTOI, FDTOI (fp to integer cast) instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16996 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcInstrInfo.td | 4 ++++ lib/Target/SparcV8/SparcV8InstrInfo.td | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index c1b8d6e7971..af3c8bce9cf 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -214,6 +214,10 @@ def WRri : F3_2<2, 0b110000, "wr">; // wr rs1, imm, rd def FITOS : F3_3<2, 0b110100, 0b011000100, "fitos">; def FITOD : F3_3<2, 0b110100, 0b011001000, "fitod">; +// Convert Floating-point to Integer Instructions, p. 142 +def FSTOI : F3_3<2, 0b110100, 0b011010001, "fstoi">; +def FDTOI : F3_3<2, 0b110100, 0b011010010, "fdtoi">; + // Convert between Floating-point Formats Instructions, p. 143 def FSTOD : F3_3<2, 0b110100, 0b011001001, "fstod">; def FDTOS : F3_3<2, 0b110100, 0b011000110, "fdtos">; diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td index c1b8d6e7971..af3c8bce9cf 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -214,6 +214,10 @@ def WRri : F3_2<2, 0b110000, "wr">; // wr rs1, imm, rd def FITOS : F3_3<2, 0b110100, 0b011000100, "fitos">; def FITOD : F3_3<2, 0b110100, 0b011001000, "fitod">; +// Convert Floating-point to Integer Instructions, p. 142 +def FSTOI : F3_3<2, 0b110100, 0b011010001, "fstoi">; +def FDTOI : F3_3<2, 0b110100, 0b011010010, "fdtoi">; + // Convert between Floating-point Formats Instructions, p. 143 def FSTOD : F3_3<2, 0b110100, 0b011001001, "fstod">; def FDTOS : F3_3<2, 0b110100, 0b011000110, "fdtos">;