Home | History | Annotate | Download | only in ld-nios2
      1 # Test for Nios II 32-bit, 16 and 8-bit relocations
      2 
      3 .set noat
      4 .set some_other_sym, 0x1000
      5 .text
      6 .global _start
      7 _start:
      8 # signed 16-bit relocation
      9 	addi r1, r1, some_sym
     10 	addi r1, r1, min
     11 	addi r1, r1, max
     12 	addi r1, r1, some_sym + some_other_sym + 1
     13 	addi r1, r1, some_sym - some_other_sym + 1
     14 
     15 
     16 
     17