diff options
| -rw-r--r-- | simplify.c | 3 | ||||
| -rw-r--r-- | validation/optim/zext-sext.c | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -1080,6 +1080,9 @@ static int simplify_cast(struct instruction *insn) break; case OP_ZEXT: switch (insn->opcode) { + case OP_SEXT: + insn->opcode = OP_ZEXT; + /* fall through */ case OP_ZEXT: insn->orig_type = def->orig_type; return replace_pseudo(insn, &insn->src, def->src); diff --git a/validation/optim/zext-sext.c b/validation/optim/zext-sext.c index b0964b54..1fe3900d 100644 --- a/validation/optim/zext-sext.c +++ b/validation/optim/zext-sext.c @@ -6,7 +6,6 @@ int foo(unsigned char offset) /* * check-name: zext-sext * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: sext\\. |
