decoder.isa (11877:5ea85692a53e) | decoder.isa (12692:1eaaa1d75080) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 144 unchanged lines hidden (view full) --- 153 954: extsb({{ Ra = sext<8>(Rs); }}); 154 284: eqv({{ Ra = ~(Rs ^ Rb); }}); 155 412: orc({{ Ra = Rs | ~Rb; }}); 156 922: extsh({{ Ra = sext<16>(Rs); }}); 157 26: cntlzw({{ Ra = Rs == 0 ? 32 : 31 - findMsbSet(Rs); }}); 158 508: cmpb({{ 159 uint32_t val = 0; 160 for (int n = 0; n < 32; n += 8) { | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2009 The University of Edinburgh 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 144 unchanged lines hidden (view full) --- 153 954: extsb({{ Ra = sext<8>(Rs); }}); 154 284: eqv({{ Ra = ~(Rs ^ Rb); }}); 155 412: orc({{ Ra = Rs | ~Rb; }}); 156 922: extsh({{ Ra = sext<16>(Rs); }}); 157 26: cntlzw({{ Ra = Rs == 0 ? 32 : 31 - findMsbSet(Rs); }}); 158 508: cmpb({{ 159 uint32_t val = 0; 160 for (int n = 0; n < 32; n += 8) { |
161 if(bits(Rs, n, n+7) == bits(Rb, n, n+7)) { 162 val = insertBits(val, n, n+7, 0xff); | 161 if(bits(Rs, n+7, n) == bits(Rb, n+7, n)) { 162 val = insertBits(val, n+7, n, 0xff); |
163 } 164 } 165 Ra = val; 166 }}); 167 168 24: slw({{ 169 if (Rb & 0x20) { 170 Ra = 0; --- 404 unchanged lines hidden (view full) --- 575 U_FIELD); 576 }}); 577 711: mtfsf({{ 578 if (L_FIELD == 1) { FPSCR = Fb_uq; } 579 else { 580 for (int i = 0; i < 8; ++i) { 581 if (bits(FLM, i) == 1) { 582 int k = 4 * (i + (8 * (1 - W_FIELD))); | 163 } 164 } 165 Ra = val; 166 }}); 167 168 24: slw({{ 169 if (Rb & 0x20) { 170 Ra = 0; --- 404 unchanged lines hidden (view full) --- 575 U_FIELD); 576 }}); 577 711: mtfsf({{ 578 if (L_FIELD == 1) { FPSCR = Fb_uq; } 579 else { 580 for (int i = 0; i < 8; ++i) { 581 if (bits(FLM, i) == 1) { 582 int k = 4 * (i + (8 * (1 - W_FIELD))); |
583 FPSCR = insertBits(FPSCR, k, k + 3, 584 bits(Fb_uq, k, k + 3)); | 583 FPSCR = insertBits(FPSCR, k + 3, k, 584 bits(Fb_uq, k + 3, k)); |
585 } 586 } 587 } 588 }}); 589 70: mtfsb0({{ FPSCR = insertBits(FPSCR, 31 - BT, 0); }}); 590 38: mtfsb1({{ FPSCR = insertBits(FPSCR, 31 - BT, 1); }}); 591 } 592 } 593 } 594} | 585 } 586 } 587 } 588 }}); 589 70: mtfsb0({{ FPSCR = insertBits(FPSCR, 31 - BT, 0); }}); 590 38: mtfsb1({{ FPSCR = insertBits(FPSCR, 31 - BT, 1); }}); 591 } 592 } 593 } 594} |