Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / CSKY / tls_gd.s
blob5508edfbc687e58be0f21213c3016d23de05b874
1 # RUN: llvm-mc -filetype=obj -triple=csky -mattr=+2e3 < %s \
2 # RUN: | llvm-objdump --mattr=+2e3 --no-show-raw-insn -M no-aliases -d -r - | FileCheck %s
4 .LTLS0:
5 lrw16 r0, xxx@TLSGD32
6 grs32 r2, .LTLS0
7 addu16 r0, r0, r2
8 lrw16 r3, __tls_get_addr@PLT
9 ldr32.w r3, (rgb, r3 << 0)
10 jsr16 r3
12 # CHECK: 0: lrw16 r0, 0x10
13 # CHECK-NEXT: 2: grs32 r2, 0x0
14 # CHECK-NEXT: 6: addu16 r0, r0, r2
15 # CHECK-NEXT: 8: lrw16 r3, 0x14
16 # CHECK-NEXT: a: ldr32.w r3, (r28, r3 << 0)
17 # CHECK-NEXT: e: jsr16 r3
19 # CHECK: 10: 00 00 00 00 .word 0x00000000
20 # CHECK-NEXT: 00000010: R_CKCORE_TLS_GD32 xxx+0x10
21 # CHECK-NEXT: 14: 00 00 00 00 .word 0x00000000
22 # CHECK-NEXT: 00000014: R_CKCORE_PLT32 __tls_get_addr