decoder.isa (8588:ef28ed90449d) | decoder.isa (8917:a16ba72db7d0) |
---|---|
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 --- 557 unchanged lines hidden (view full) --- 566 Ft_uq = insertBits(Ft_uq, 63, 1); }}); 567 40: fneg({{ Ft = -Fb; }}); 568 8: fcpsgn({{ 569 Ft_uq = Fb_uq; 570 Ft_uq = insertBits(Ft_uq, 63, Fa_uq<63:63>); 571 }}); 572 583: mffs({{ Ft_uq = FPSCR; }}); 573 134: mtfsfi({{ | 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 --- 557 unchanged lines hidden (view full) --- 566 Ft_uq = insertBits(Ft_uq, 63, 1); }}); 567 40: fneg({{ Ft = -Fb; }}); 568 8: fcpsgn({{ 569 Ft_uq = Fb_uq; 570 Ft_uq = insertBits(Ft_uq, 63, Fa_uq<63:63>); 571 }}); 572 583: mffs({{ Ft_uq = FPSCR; }}); 573 134: mtfsfi({{ |
574 FPSCR = insertCRField(FPSCR, BF + (8 * (1 - W)), U_FIELD); | 574 FPSCR = insertCRField(FPSCR, BF + (8 * (1 - W_FIELD)), 575 U_FIELD); |
575 }}); 576 711: mtfsf({{ | 576 }}); 577 711: mtfsf({{ |
577 if (L == 1) { FPSCR = Fb_uq; } | 578 if (L_FIELD == 1) { FPSCR = Fb_uq; } |
578 else { 579 for (int i = 0; i < 8; ++i) { 580 if (bits(FLM, i) == 1) { | 579 else { 580 for (int i = 0; i < 8; ++i) { 581 if (bits(FLM, i) == 1) { |
581 int k = 4 * (i + (8 * (1 - W))); | 582 int k = 4 * (i + (8 * (1 - W_FIELD))); |
582 FPSCR = insertBits(FPSCR, k, k + 3, 583 bits(Fb_uq, k, k + 3)); 584 } 585 } 586 } 587 }}); 588 70: mtfsb0({{ FPSCR = insertBits(FPSCR, 31 - BT, 0); }}); 589 38: mtfsb1({{ FPSCR = insertBits(FPSCR, 31 - BT, 1); }}); 590 } 591 } 592 } 593} | 583 FPSCR = insertBits(FPSCR, k, k + 3, 584 bits(Fb_uq, k, k + 3)); 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} |