Mesa (master): radeon/llvm: Add support for fp_to_sint on SI

Tom Stellard tstellar at kemper.freedesktop.org
Thu Aug 2 20:39:30 UTC 2012


Module: Mesa
Branch: master
Commit: 4104bae063a3a06ddc00371a576ad0a55f520473
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4104bae063a3a06ddc00371a576ad0a55f520473

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Thu Aug  2 14:04:36 2012 -0400

radeon/llvm: Add support for fp_to_sint on SI

---

 src/gallium/drivers/radeon/SIInstructions.td |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td
index 31b9e5e..1f03ea5 100644
--- a/src/gallium/drivers/radeon/SIInstructions.td
+++ b/src/gallium/drivers/radeon/SIInstructions.td
@@ -503,7 +503,9 @@ defm V_MOV_B32 : VOP1_32 <0x00000001, "V_MOV_B32", []>;
 defm V_READFIRSTLANE_B32 : VOP1_32 <0x00000002, "V_READFIRSTLANE_B32", []>;
 //defm V_CVT_I32_F64 : VOP1_32 <0x00000003, "V_CVT_I32_F64", []>;
 //defm V_CVT_F64_I32 : VOP1_64 <0x00000004, "V_CVT_F64_I32", []>;
-//defm V_CVT_F32_I32 : VOP1_32 <0x00000005, "V_CVT_F32_I32", []>;
+defm V_CVT_F32_I32 : VOP1_32 <0x00000005, "V_CVT_F32_I32",
+  [(set VReg_32:$dst, (fp_to_sint AllReg_32:$src0))]
+>;
 //defm V_CVT_F32_U32 : VOP1_32 <0x00000006, "V_CVT_F32_U32", []>;
 //defm V_CVT_U32_F32 : VOP1_32 <0x00000007, "V_CVT_U32_F32", []>;
 //defm V_CVT_I32_F32 : VOP1_32 <0x00000008, "V_CVT_I32_F32", []>;




More information about the mesa-commit mailing list