summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-07-21 17:12:37 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-07-21 17:12:37 +0000
commitca000c6c7b2c20334b5e22e40d9fd148ec227c99 (patch)
tree094e49f61f45bf387e2171e44469c2b85bd5f755
parent6c99015fe2c1814f793530adc96f48050081612e (diff)
downloadbcm5719-llvm-ca000c6c7b2c20334b5e22e40d9fd148ec227c99.tar.gz
bcm5719-llvm-ca000c6c7b2c20334b5e22e40d9fd148ec227c99.zip
R600/SI: Initialize unused VOP3 sources to 0 instead of SIOperand.ZERO
llvm-svn: 213563
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.td12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/R600/SIInstrInfo.td b/llvm/lib/Target/R600/SIInstrInfo.td
index 0a624a3e13d..8c1da6c9164 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.td
+++ b/llvm/lib/Target/R600/SIInstrInfo.td
@@ -315,8 +315,8 @@ multiclass VOP1_Helper <bits<8> op, RegisterClass drc, RegisterClass src,
(ins InputMods:$src0_modifiers, src:$src0, i32imm:$clamp, i32imm:$omod),
opName#"_e64 $dst, $src0_modifiers, $clamp, $omod", []
>, VOP <opName> {
- let src1 = SIOperand.ZERO;
- let src2 = SIOperand.ZERO;
+ let src1 = 0;
+ let src2 = 0;
}
}
@@ -347,7 +347,7 @@ multiclass VOP2_Helper <bits<6> op, RegisterClass vrc, RegisterClass arc,
i32imm:$clamp, i32imm:$omod),
opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", []
>, VOP <opName>, VOP2_REV<revOp#"_e64", !eq(revOp, opName)> {
- let src2 = SIOperand.ZERO;
+ let src2 = 0;
}
}
@@ -375,7 +375,7 @@ multiclass VOP2b_32 <bits<6> op, string opName, list<dag> pattern,
i32imm:$clamp, i32imm:$omod),
opName#"_e64 $dst, $src0_modifiers, $src1_modifiers, $clamp, $omod", []
>, VOP <opName>, VOP2_REV<revOp#"_e64", !eq(revOp, opName)> {
- let src2 = SIOperand.ZERO;
+ let src2 = 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 */
@@ -404,7 +404,7 @@ multiclass VOPC_Helper <bits<8> op, RegisterClass vrc, RegisterClass arc,
)
>, VOP <opName> {
let Defs = !if(defExec, [EXEC], []);
- let src2 = SIOperand.ZERO;
+ let src2 = 0;
let src2_modifiers = 0;
}
}
@@ -439,7 +439,7 @@ class VOP3_64_32 <bits <9> op, string opName, list<dag> pattern> : VOP3 <
opName#" $dst, $src0, $src1", pattern
>, VOP <opName> {
- let src2 = SIOperand.ZERO;
+ let src2 = 0;
let src0_modifiers = 0;
let clamp = 0;
let omod = 0;
OpenPOWER on IntegriCloud