patch a mistake in NZM calculation for OPCODE_NOT
This commit is contained in:
parent
327cc9eff5
commit
08232de8cc
|
@ -102,7 +102,7 @@ uint64_t SimplificationPass::GetScalarNZM(hir::Value* value, hir::Instr* def,
|
|||
} else if (def_opcode == OPCODE_XOR || def_opcode == OPCODE_OR) {
|
||||
return GetScalarNZM(def->src1.value) | GetScalarNZM(def->src2.value);
|
||||
} else if (def_opcode == OPCODE_NOT) {
|
||||
return ~GetScalarNZM(def->src1.value);
|
||||
return typemask;
|
||||
} else if (def_opcode == OPCODE_ASSIGN) {
|
||||
return GetScalarNZM(def->src1.value);
|
||||
} else if (def_opcode == OPCODE_BYTE_SWAP) {
|
||||
|
|
Loading…
Reference in New Issue