radeon/llvm: Add support for fp_to_sint on SI
authorTom Stellard <thomas.stellard@amd.com>
Thu, 2 Aug 2012 18:04:36 +0000 (14:04 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 2 Aug 2012 20:12:10 +0000 (20:12 +0000)
src/gallium/drivers/radeon/SIInstructions.td

index 31b9e5ec1c0b911dbf48048048bc1f63fdae904e..1f03ea57278e2541244a098143f3a6e3c9ce81c8 100644 (file)
@@ -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", []>;