u16.s 299 B

12345678910111213141516
  1. # Test for Nios II 32-bit, 16 and 8-bit relocations
  2. .set noat
  3. .set some_other_sym, 0x1000
  4. .text
  5. .global _start
  6. _start:
  7. # unsigned 16-bit relocation
  8. andi r1, r1, some_sym
  9. andi r1, r1, min
  10. andi r1, r1, max
  11. andi r1, r1, some_sym + some_other_sym + 1
  12. andi r1, r1, some_sym - some_other_sym + 1