patch a mistake in NZM calculation for OPCODE_NOT

This commit is contained in:
chrisps 2022-06-26 09:30:56 -07:00 committed by GitHub
parent 327cc9eff5
commit 08232de8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ uint64_t SimplificationPass::GetScalarNZM(hir::Value* value, hir::Instr* def,
} else if (def_opcode == OPCODE_XOR || def_opcode == OPCODE_OR) { } else if (def_opcode == OPCODE_XOR || def_opcode == OPCODE_OR) {
return GetScalarNZM(def->src1.value) | GetScalarNZM(def->src2.value); return GetScalarNZM(def->src1.value) | GetScalarNZM(def->src2.value);
} else if (def_opcode == OPCODE_NOT) { } else if (def_opcode == OPCODE_NOT) {
return ~GetScalarNZM(def->src1.value); return typemask;
} else if (def_opcode == OPCODE_ASSIGN) { } else if (def_opcode == OPCODE_ASSIGN) {
return GetScalarNZM(def->src1.value); return GetScalarNZM(def->src1.value);
} else if (def_opcode == OPCODE_BYTE_SWAP) { } else if (def_opcode == OPCODE_BYTE_SWAP) {