radeon/llvm: Match int_AMDGPU_floor for SI.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 12 Sep 2012 15:33:30 +0000 (17:33 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 17 Sep 2012 15:30:09 +0000 (17:30 +0200)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/SIInstructions.td

index d663c634f4f164359bd802a6699600bc7c7d954a..4b76dad0eecbaa285daabae85524c1a44d7dcf83 100644 (file)
@@ -530,7 +530,9 @@ defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_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_FLOOR_F32 : VOP1_32 <0x00000024, "V_FLOOR_F32",
+  [(set VReg_32:$dst, (int_AMDGPU_floor AllReg_32:$src0))]
+>;
 defm V_EXP_F32 : VOP1_32 <0x00000025, "V_EXP_F32",
   [(set VReg_32:$dst, (fexp2 AllReg_32:$src0))]
 >;