aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--simplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 68195d5f..94acd567 100644
--- a/simplify.c
+++ b/simplify.c
@@ -992,7 +992,7 @@ static int simplify_cast(struct instruction *insn)
switch (def_opcode(src)) {
case OP_AND:
/* A cast of a AND might be a no-op.. */
- if (def->size >= size) {
+ if (insn->opcode == OP_TRUNC) {
pseudo_t val = def->src2;
if (val->type == PSEUDO_VAL) {
unsigned long long value = val->value;