diff options
Diffstat (limited to 'ld/testsuite/ld-nds32/diff.s')
-rw-r--r-- | ld/testsuite/ld-nds32/diff.s | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nds32/diff.s b/ld/testsuite/ld-nds32/diff.s new file mode 100644 index 0000000..a2844b7 --- /dev/null +++ b/ld/testsuite/ld-nds32/diff.s @@ -0,0 +1,32 @@ + .global _start + .global WORD + .global HALF + .global BYTE + .global ULEB128 +.text +_start: + nop +.L0: + l.w $r0, WORD + .zero 122 +.L1: + nop + +.section code, "ax" +FOO: + ret + +.data +WORD: + .word .L1-.L0 +HALF: + .half .L1-.L0 +BYTE: + .byte .L1-.L0 +ULEB128: + .uleb128 .L1-.L0 +ULEB128_2: + .uleb128 .L1-.L0 + .align 2 +PAD: + .long 0 |