decoder.isa (12850:7036cad54910) decoder.isa (13612:12ae022f3a30)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2017 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

--- 767 unchanged lines hidden (view full) ---

776 }
777 }}, IntDivOp);
778 0x5: decode FUNCT7 {
779 0x0: srlw({{
780 Rd_sd = (int32_t)(Rs1_uw >> Rs2<4:0>);
781 }});
782 0x1: divuw({{
783 if (Rs2_uw == 0) {
1// -*- mode:c++ -*-
2
3// Copyright (c) 2015 RISC-V Foundation
4// Copyright (c) 2017 The University of Virginia
5// All rights reserved.
6//
7// Redistribution and use in source and binary forms, with or without
8// modification, are permitted provided that the following conditions are

--- 767 unchanged lines hidden (view full) ---

776 }
777 }}, IntDivOp);
778 0x5: decode FUNCT7 {
779 0x0: srlw({{
780 Rd_sd = (int32_t)(Rs1_uw >> Rs2<4:0>);
781 }});
782 0x1: divuw({{
783 if (Rs2_uw == 0) {
784 Rd_sd = numeric_limits<IntReg>::max();
784 Rd_sd = numeric_limits<uint64_t>::max();
785 } else {
786 Rd_sd = (int32_t)(Rs1_uw/Rs2_uw);
787 }
788 }}, IntDivOp);
789 0x20: sraw({{
790 Rd_sd = Rs1_sw >> Rs2<4:0>;
791 }});
792 }

--- 993 unchanged lines hidden ---
785 } else {
786 Rd_sd = (int32_t)(Rs1_uw/Rs2_uw);
787 }
788 }}, IntDivOp);
789 0x20: sraw({{
790 Rd_sd = Rs1_sw >> Rs2<4:0>;
791 }});
792 }

--- 993 unchanged lines hidden ---