[llvm-branch-commits] [llvm-branch] r166322 - /llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td

Tom Stellard thomas.stellard at amd.com
Fri Oct 19 14:10:00 PDT 2012


Author: tstellar
Date: Fri Oct 19 16:10:00 2012
New Revision: 166322

URL: http://llvm.org/viewvc/llvm-project?rev=166322&view=rev
Log:
R600: Fix DIV_Common pattern use

This fix a crash in neverball with cayman

Patch by: Vincent Lejeune

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

Modified:
    llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td

Modified: llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td?rev=166322&r1=166321&r2=166322&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td Fri Oct 19 16:10:00 2012
@@ -953,6 +953,7 @@
 let Predicates = [isEG] in {
   
 def RECIP_IEEE_eg : RECIP_IEEE_Common<0x86>;
+defm DIV_eg : DIV_Common<RECIP_IEEE_eg>;
 
 def MULLO_INT_eg : MULLO_INT_Common<0x8F>;
 def MULHI_INT_eg : MULHI_INT_Common<0x90>;
@@ -1014,7 +1015,6 @@
   def : DOT4_Pat <DOT4_eg>;
   defm CUBE_eg : CUBE_Common<0xC0>;
 
-  defm DIV_eg : DIV_Common<RECIP_IEEE_eg>;
   def SSG_eg : SSG_Common<CNDGT_eg, CNDGE_eg>;
   def TGSI_LIT_Z_eg : TGSI_LIT_Z_Common<MUL_LIT_eg, LOG_CLAMPED_eg, EXP_IEEE_eg>;
 
@@ -1307,6 +1307,8 @@
 def LOG_IEEE_ : LOG_IEEE_Common<0x83>;
 } // End isVector = 1
 
+defm DIV_cm : DIV_Common<RECIP_IEEE_cm>;
+
 // RECIP_UINT emulation for Cayman
 def : Pat <
   (AMDGPUurecip R600_Reg32:$src0),





More information about the llvm-branch-commits mailing list