gk110/ir: make use of IMUL32I for all immediates
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Apr 2016 17:06:24 +0000 (19:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Apr 2016 20:55:36 +0000 (22:55 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index e2c3b8ef14d997446e991b87feddb5524be164dd..519da6932e1fedbd88e8a38c382120d37c4597bb 100644 (file)
@@ -581,7 +581,7 @@ CodeEmitterGK110::emitIMUL(const Instruction *i)
    assert(!i->src(0).mod.neg() && !i->src(1).mod.neg());
    assert(!i->src(0).mod.abs() && !i->src(1).mod.abs());
 
-   if (isLIMM(i->src(1), TYPE_S32)) {
+   if (i->src(1).getFile() == FILE_IMMEDIATE) {
       emitForm_L(i, 0x280, 2, Modifier(0));
 
       if (i->subOp == NV50_IR_SUBOP_MUL_HIGH)