diff options
author | Rhys Perry <[email protected]> | 2019-10-14 19:27:52 +0100 |
---|---|---|
committer | Rhys Perry <[email protected]> | 2019-10-22 18:52:29 +0000 |
commit | a400928f4a64c657c214672a39801130cceaf79b (patch) | |
tree | e8c3b4358f6c29b9c66847e0d6f8c4e895190b34 /src/amd | |
parent | f6f15859de8ca1dc184728c7bb815f2de9a8a741 (diff) |
aco: fix 64-bit p_extract_vector on 32-bit p_create_vector
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/compiler/aco_optimizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 501e48162be..4a287336d0d 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -765,7 +765,8 @@ void label_instruction(opt_ctx &ctx, aco_ptr<Instruction>& instr) if (!ctx.info[instr->operands[0].tempId()].is_vec()) break; Instruction* vec = ctx.info[instr->operands[0].tempId()].instr; - if (vec->definitions[0].getTemp().size() == vec->operands.size()) { /* TODO: what about 64bit or other combinations? */ + if (vec->definitions[0].getTemp().size() == vec->operands.size() && /* TODO: what about 64bit or other combinations? */ + vec->operands[0].size() == instr->definitions[0].size()) { /* convert this extract into a mov instruction */ Operand vec_op = vec->operands[instr->operands[1].constantValue()]; |