gm107/ir: make use of IMUL32I for all immediates
IMUL only allows to emit 19-bits immediates. This is similar to
d30768025a which fixed the same thing
for the GK110 emitter.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -1719,7 +1719,7 @@ CodeEmitterGM107::emitIADD()
|
||||
void
|
||||
CodeEmitterGM107::emitIMUL()
|
||||
{
|
||||
if (!longIMMD(insn->src(1))) {
|
||||
if (insn->src(1).getFile() != FILE_IMMEDIATE) {
|
||||
switch (insn->src(1).getFile()) {
|
||||
case FILE_GPR:
|
||||
emitInsn(0x5c380000);
|
||||
|
||||
Reference in New Issue
Block a user