[llvm] r213564 - R600/SI: Initailize encoding fields of unused VOP3 modifiers to 0

Tom Stellard thomas.stellard at amd.com
Mon Jul 21 10:12:40 PDT 2014


Author: tstellar
Date: Mon Jul 21 12:12:40 2014
New Revision: 213564

URL: http://llvm.org/viewvc/llvm-project?rev=213564&view=rev
Log:
R600/SI: Initailize encoding fields of unused VOP3 modifiers to 0

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

Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.td?rev=213564&r1=213563&r2=213564&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.td (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.td Mon Jul 21 12:12:40 2014
@@ -316,7 +316,9 @@ multiclass VOP1_Helper <bits<8> op, Regi
     opName#"_e64 $dst, $src0_modifiers, $clamp, $omod", []
   >, VOP <opName> {
     let src1 = 0;
+    let src1_modifiers = 0;
     let src2 = 0;
+    let src2_modifiers = 0;
   }
 }
 
@@ -348,6 +350,7 @@ multiclass VOP2_Helper <bits<6> op, Regi
     opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", []
   >, VOP <opName>, VOP2_REV<revOp#"_e64", !eq(revOp, opName)> {
     let src2 = 0;
+    let src2_modifiers = 0;
   }
 }
 
@@ -376,6 +379,7 @@ multiclass VOP2b_32 <bits<6> op, string
     opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", []
   >, VOP <opName>, VOP2_REV<revOp#"_e64", !eq(revOp, opName)> {
     let src2 = 0;
+    let src2_modifiers = 0;
     /* the VOP2 variant puts the carry out into VCC, the VOP3 variant
        can write it into any SGPR. We currently don't use the carry out,
        so for now hardcode it to VCC as well */
@@ -440,6 +444,7 @@ class VOP3_64_32 <bits <9> op, string op
 >, VOP <opName> {
 
   let src2 = 0;
+  let src2_modifiers = 0;
   let src0_modifiers = 0;
   let clamp = 0;
   let omod = 0;





More information about the llvm-commits mailing list