X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fm32c%2Fr8c.opc;h=bc7f1073fe5331e1d814147d7c8ba8c04b86f65d;hb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;hp=4db0bda030803e2029094264be00948efce80c9c;hpb=727b6b4b411c55d0d6719556bcf6a5da5c54adb6;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/m32c/r8c.opc b/sim/m32c/r8c.opc index 4db0bda030..bc7f1073fe 100644 --- a/sim/m32c/r8c.opc +++ b/sim/m32c/r8c.opc @@ -1,24 +1,22 @@ /* r8c.opc --- semantics for r8c opcodes. -*- mode: c -*- -Copyright (C) 2005 Free Software Foundation, Inc. +Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. -The GNU simulators are free software; you can redistribute them and/or -modify them under the terms of the GNU General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. -The GNU simulators are distributed in the hope that they will be -useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with the GNU simulators; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301, USA */ +along with this program. If not, see . */ #include @@ -885,7 +883,7 @@ decode_r8c() /** 0111 010w 1100 dest MOV.size:G #IMM,dest */ - UNARY_UOP; + dc = decode_srcdest4 (dest, w); imm = IMM(w); v = imm; tprintf("%x = %x\n", v, v); @@ -894,7 +892,7 @@ decode_r8c() /** 1101 100w immm dest MOV.size:Q #IMM,dest */ - UNARY_SOP; + dc = decode_srcdest4 (dest, w); v = sign_ext (immm, 4); tprintf ("%x = %x\n", v, v); set_sz (v, w+1); @@ -1530,14 +1528,14 @@ decode_r8c() sc = decode_srcdest4(srcx, w); dc = decode_srcdest4(dest, w); b = get_src (sc); - MATH_OP (dc, b, 0, -, > 0); + MATH_OP (dc, b, 0, -, >= 0); /** 0010 1d sr SUB.B:S src,R0L/R0H */ sc = decode_src2 (sr, 0, d); dc = decode_dest1 (d, 0); b = get_src (sc); - MATH_OP (dc, b, 0, -, > 0); + MATH_OP (dc, b, 0, -, >= 0); /** 0111 011w 0000 dest TST.size #IMM, dest */