Commit | Line | Data |
---|---|---|
0efd4160 ILT |
1 | #name: JAL overflow |
2 | #source: jaloverflow.s | |
3 | #as: | |
4 | #ld: -Ttext=0xffffff0 -e start | |
5 | #error: .*relocation truncated to fit.* | |
6 | ||
7 | # This tests whether we correctly detect overflow in the jal | |
8 | # instruction. jal is a bit weird since the upper four bits of the | |
9 | # destination address are taken from the source address. So overflow | |
10 | # occurs if the source and destination address do not have the same | |
11 | # most significant four bits. |