Question: Write a set of MIPS code sequences to stress test the MIPS bne instruction (i.e., it should test the range of operand values, any exceptional
Write a set of MIPS code sequences to stress test the MIPS bne instruction (i.e., it should test the range of operand values, any exceptional behavior, and any other edge cases you can think of such as overflow). There should be at least three such test programs. In the comments, justify why you are including each specific test case and why the test has value (e.g., what edge case it covers or what common case it covers). Note that these files will be used to help test your implementations. As such, upload your function in a separate .s file.
Do not use these instructions in the implementation : j, jal, jr, bgez, bgezal, bgtz, blez, bltzal, bltz.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
