diff options
Diffstat (limited to 'gas/testsuite/gas/riscv/fixup-local.s')
-rw-r--r-- | gas/testsuite/gas/riscv/fixup-local.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/testsuite/gas/riscv/fixup-local.s b/gas/testsuite/gas/riscv/fixup-local.s new file mode 100644 index 0000000..44b4731 --- /dev/null +++ b/gas/testsuite/gas/riscv/fixup-local.s @@ -0,0 +1,13 @@ +.global foo +.global bar +foo: + la a0, .LL0 +.LL0: + la a0, bar + la a0, foo +.LL1: + auipc a0, %pcrel_hi(.LL2) + lw a0, %pcrel_lo(.LL1)(a0) + +.LL2: + ret |