Commit b69a9129 authored by Lyude Paul's avatar Lyude Paul

bifrost: Decode special 0 constant

It's all zero, all the time! Amazing
parent 8412afd8
......@@ -209,6 +209,7 @@ static void DumpSrc(unsigned src, Regs srcs, uint64_t *consts, bool isFMA)
case 7: imm = ((uint32_t) consts[3]) | low_bits; break;
case 2: imm = ((uint32_t) consts[4]) | low_bits; break;
case 3: imm = ((uint32_t) consts[5]) | low_bits; break;
case 0: imm = 0; break;
default: valid = false; break;
}
if (valid)
......@@ -231,6 +232,7 @@ static void DumpSrc(unsigned src, Regs srcs, uint64_t *consts, bool isFMA)
case 7: imm = (uint32_t)(consts[3] >> 32); break;
case 2: imm = (uint32_t)(consts[4] >> 32); break;
case 3: imm = (uint32_t)(consts[5] >> 32); break;
case 0: imm = 0; break;
default: valid = false; break;
}
if (valid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment