Back to index

cell-binutils  2.17cvs20070401
jaloverflow.d
Go to the documentation of this file.
00001 #name: JAL overflow
00002 #source: jaloverflow.s
00003 #as:
00004 #ld: -Ttext=0xffffff0 -e start
00005 #error: .*relocation truncated to fit.*
00006 
00007 # This tests whether we correctly detect overflow in the jal
00008 # instruction.  jal is a bit weird since the upper four bits of the
00009 # destination address are taken from the source address.  So overflow
00010 # occurs if the source and destination address do not have the same
00011 # most significant four bits.