From: Mike Frysinger Date: Sun, 24 Dec 2023 08:59:02 +0000 (-0500) Subject: sim: sh: refine pwsb & pwad nops X-Git-Tag: binutils-2_42~394 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43fbcdcd03fec85a9ea147000c3feec9d4989d6c;p=thirdparty%2Fbinutils-gdb.git sim: sh: refine pwsb & pwad nops Since these insns don't do anything and are effectively ignored, return early to avoid doing any common processing at the end as that requires initializing variables like "res" with something. --- diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 8ef3f3e3376..c121d53bb40 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2012,8 +2012,10 @@ static op ppi_tab[] = "ADD_SUB_GE;", }, { "","", "pwsb Sx,Sy,Dz", "10100100....zzzz", + "return;", }, { "","", "pwad Sx,Sy,Dz", "10110100....zzzz", + "return;", }, { "","", "(if cc) pabs Sx,Dz", "100010ccxx01zzzz", "/* FIXME: duplicate code pabs. */",