Mesa (master): radeon/llvm: Match int_AMDGPU_floor for SI.

Michel Dänzer daenzer at kemper.freedesktop.org
Mon Sep 17 16:30:16 UTC 2012


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

Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Wed Sep 12 17:33:30 2012 +0200

radeon/llvm: Match int_AMDGPU_floor for SI.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

---

 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 d663c63..4b76dad 100644
--- a/src/gallium/drivers/radeon/SIInstructions.td
+++ b/src/gallium/drivers/radeon/SIInstructions.td
@@ -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))]
 >;




More information about the mesa-commit mailing list