1 # RUN: llvm-mc -filetype=obj -triple=csky -mattr=+e2 < %s \
2 # RUN: | llvm-objdump --mattr=+e2 --no-show-raw-insn -M no-aliases -d -r - | FileCheck %s
27 lrw
r0, .L4 + 64*1024 - 2
32 # CHECK: 0: lrw16 r0, 0x28
33 # CHECK-NEXT: 2: lrw16 r0, 0x2c
34 # CHECK-NEXT: 4: lrw16 r0, 0x30
36 # CHECK: 6: 00 1c .short 0x1c00
38 # CHECK: 8: lrw16 r0, 0x34
39 # CHECK-NEXT: a: lrw16 r0, 0x38
40 # CHECK-NEXT: c: lrw16 r0, 0x3c
41 # CHECK-NEXT: e: movi16 r0, 0
42 # CHECK-NEXT: 10: movi32 r0, 65535
43 # CHECK-NEXT: 14: movi32 r31, 0
44 # CHECK-NEXT: 18: lrw32 r31, 0x40
45 # CHECK-NEXT: 1c: lrw16 r0, 0x44
46 # CHECK-NEXT: 1e: lrw16 r0, 0x48
47 # CHECK-NEXT: 20: lrw16 r0, 0x4c
48 # CHECK-NEXT: 22: lrw16 r0, 0x50
49 # CHECK-NEXT: 24: lrw16 r0, 0x54
51 # CHECK: 28: 00 00 00 00 .word 0x00000000
52 # CHECK-NEXT: 00000028: R_CKCORE_ADDR32 lnk
53 # CHECK-NEXT: 2c: 00 00 00 00 .word 0x00000000
54 # CHECK-NEXT: 0000002c: R_CKCORE_ADDR32 lnk-0x4
55 # CHECK-NEXT: 30: 00 00 00 00 .word 0x00000000
56 # CHECK-NEXT: 00000030: R_CKCORE_ADDR32 lnk+0x4
57 # CHECK-NEXT: 34: 00 00 00 00 .word 0x00000000
58 # CHECK-NEXT: 00000034: R_CKCORE_ADDR32 .data
59 # CHECK-NEXT: 38: 00 00 00 00 .word 0x00000000
60 # CHECK-NEXT: 00000038: R_CKCORE_ADDR32 .data-0x4
61 # CHECK-NEXT: 3c: 00 00 00 00 .word 0x00000000
62 # CHECK-NEXT: 0000003c: R_CKCORE_ADDR32 .data+0x4
63 # CHECK-NEXT: 40: 00 00 00 00 .word 0x00000000
64 # CHECK-NEXT: 00000040: R_CKCORE_ADDR32 .text+0x18
65 # CHECK-NEXT: 44: 00 00 00 00 .word 0x00000000
66 # CHECK-NEXT: 00000044: R_CKCORE_ADDR32 .text+0x1c
67 # CHECK-NEXT: 48: 00 00 00 00 .word 0x00000000
68 # CHECK-NEXT: 00000048: R_CKCORE_ADDR32 .text-0xffe2
69 # CHECK-NEXT: 4c: 00 00 00 00 .word 0x00000000
70 # CHECK-NEXT: 0000004c: R_CKCORE_ADDR32 .text+0x1001e
71 # CHECK-NEXT: 50: 04 03 02 01 .word 0x01020304
72 # CHECK-NEXT: 54: fe ff ff ff .word 0xfffffffe