[llvm] r181263 - R600/SI: Add pattern for AMDGPU.trunc intrinsic

Tom Stellard thomas.stellard at amd.com
Mon May 6 16:02:00 PDT 2013


Author: tstellar
Date: Mon May  6 18:02:00 2013
New Revision: 181263

URL: http://llvm.org/viewvc/llvm-project?rev=181263&view=rev
Log:
R600/SI: Add pattern for AMDGPU.trunc intrinsic

Patch by: Michel Dänzer

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

Modified:
    llvm/trunk/lib/Target/R600/SIInstructions.td

Modified: llvm/trunk/lib/Target/R600/SIInstructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstructions.td?rev=181263&r1=181262&r2=181263&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstructions.td (original)
+++ llvm/trunk/lib/Target/R600/SIInstructions.td Mon May  6 18:02:00 2013
@@ -624,7 +624,9 @@ defm V_MOV_FED_B32 : VOP1_32 <0x00000009
 defm V_FRACT_F32 : VOP1_32 <0x00000020, "V_FRACT_F32",
   [(set f32:$dst, (AMDGPUfract f32:$src0))]
 >;
-defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32", []>;
+defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32",
+  [(set f32:$dst, (int_AMDGPU_trunc f32:$src0))]
+>;
 defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_F32",
   [(set f32:$dst, (fceil f32:$src0))]
 >;





More information about the llvm-commits mailing list