diff options
Diffstat (limited to 'ld/testsuite/ld-nds32/gp.s')
-rw-r--r-- | ld/testsuite/ld-nds32/gp.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nds32/gp.s b/ld/testsuite/ld-nds32/gp.s new file mode 100644 index 00000000000..d0fde2ae8ca --- /dev/null +++ b/ld/testsuite/ld-nds32/gp.s @@ -0,0 +1,18 @@ +.data +.global mydata +mydata: + .word 0x11 + +.text +.global _start +_start: + addi.gp $r0, mydata + lbi.gp $r0, [+mydata] + lbsi.gp $r0, [+mydata] + lhi.gp $r0, [+mydata] + lhsi.gp $r0, [+mydata] + lwi.gp $r0, [+mydata] + sbi.gp $r0, [+mydata] + shi.gp $r0, [+mydata] + swi.gp $r0, [+mydata] + |