radeon/llvm: Support frint on SI
authorChristian König <deathsimple@vodafone.de>
Fri, 14 Sep 2012 14:32:43 +0000 (16:32 +0200)
committerChristian König <deathsimple@vodafone.de>
Fri, 14 Sep 2012 15:03:24 +0000 (17:03 +0200)
Gets VDPAUs shaders working again.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/SIInstructions.td

index 05665629428ac6f5d8422a3e86d5a485aa74acd4..4d907e84656498a09d86d4cda06c4ba9935f2f6c 100644 (file)
@@ -527,7 +527,9 @@ defm V_MOV_FED_B32 : VOP1_32 <0x00000009, "V_MOV_FED_B32", []>;
 defm V_FRACT_F32 : VOP1_32 <0x00000020, "V_FRACT_F32", []>;
 defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32", []>;
 defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_F32", []>;
-defm V_RNDNE_F32 : VOP1_32 <0x00000023, "V_RNDNE_F32", []>;
+defm V_RNDNE_F32 : VOP1_32 <0x00000023, "V_RNDNE_F32",
+  [(set VReg_32:$dst, (frint AllReg_32:$src0))]
+>;
 defm V_FLOOR_F32 : VOP1_32 <0x00000024, "V_FLOOR_F32", []>;
 defm V_EXP_F32 : VOP1_32 <0x00000025, "V_EXP_F32",
   [(set VReg_32:$dst, (fexp2 AllReg_32:$src0))]