nv50/ir: fix reversed order of lane ops in quadops

This commit is contained in:
Christoph Bumiller 2012-05-09 20:32:44 +02:00
parent e6caafd9d7
commit 717f55d79d
2 changed files with 6 additions and 4 deletions

View file

@ -109,9 +109,10 @@ expandIntegerMUL(BuildUtil *bld, Instruction *mul)
#define QOP_SUB 2
#define QOP_MOV2 3
// UL UR LL LR
#define QUADOP(q, r, s, t) \
((QOP_##q << 0) | (QOP_##r << 2) | \
(QOP_##s << 4) | (QOP_##t << 6))
((QOP_##q << 6) | (QOP_##r << 4) | \
(QOP_##s << 2) | (QOP_##t << 0))
class NV50LegalizePostRA : public Pass
{

View file

@ -34,9 +34,10 @@ namespace nv50_ir {
#define QOP_SUB 2
#define QOP_MOV2 3
// UL UR LL LR
#define QUADOP(q, r, s, t) \
((QOP_##q << 0) | (QOP_##r << 2) | \
(QOP_##s << 4) | (QOP_##t << 6))
((QOP_##q << 6) | (QOP_##r << 4) | \
(QOP_##s << 2) | (QOP_##t << 0))
class NVC0LegalizeSSA : public Pass
{