From d7858afe790d9c649e4e0785e8a6c8f8d2a71fba Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 21 Jul 2014 17:12:40 +0000 Subject: [PATCH] R600/SI: Initailize encoding fields of unused VOP3 modifiers to 0 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213564 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/SIInstrInfo.td | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index 8c1da6c9164..f3517035f35 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -316,7 +316,9 @@ multiclass VOP1_Helper op, RegisterClass drc, RegisterClass src, opName#"_e64 $dst, $src0_modifiers, $clamp, $omod", [] >, VOP { let src1 = 0; + let src1_modifiers = 0; let src2 = 0; + let src2_modifiers = 0; } } @@ -348,6 +350,7 @@ multiclass VOP2_Helper op, RegisterClass vrc, RegisterClass arc, opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", [] >, VOP , VOP2_REV { let src2 = 0; + let src2_modifiers = 0; } } @@ -376,6 +379,7 @@ multiclass VOP2b_32 op, string opName, list pattern, opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", [] >, VOP , VOP2_REV { 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 op, string opName, list pattern> : VOP3 < >, VOP { let src2 = 0; + let src2_modifiers = 0; let src0_modifiers = 0; let clamp = 0; let omod = 0; -- 2.34.1