Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | ; Test signed and unsigned addition instruction. |
2 | ; Test boundary conditions to ensure proper handling. | |
3 | ; Note that unsigned addition still uses signed immediates. | |
4 | ||
5 | add r10,r11,r12 ; Register form | |
6 | add 16383,r2,r4 ; Maximum positive short signed immediate | |
7 | add -16384,r4,r4 ; Minimum negative short signed immediate | |
8 | add 16384,r5,r6 ; Minimum positive long signed immediate | |
9 | add -16385,r7,r8 ; Maximum negative long signed immediate | |
10 | add 2147483647,r10,r11 ; Maximum positive long signed immediate | |
11 | add -2147483648,r12,r13 ; Minimum negative long signed immediate | |
12 | ||
13 | addu r10,r11,r12 ; Register form | |
14 | addu 16383,r2,r4 ; Maximum positive short signed immediate | |
15 | addu -16384,r4,r4 ; Minimum negative short signed immediate | |
16 | addu 16384,r5,r6 ; Minimum positive long signed immediate | |
17 | addu -16385,r7,r8 ; Maximum negative long signed immediate | |
18 | addu 2147483647,r10,r11 ; Maximum positive long signed immediate | |
19 | addu -2147483648,r12,r13 ; Minimum negative long signed immediate |