Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / PowerPC / pcrel-tls-local-exec-value-load-reloc.s
blob6ebee2ff9cffb38e53e566e1ec6aeb4a2c7563b6
1 # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s 2>&1 | \
2 # RUN: FileCheck %s -check-prefix=MC
3 # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s | \
4 # RUN: llvm-readobj -r - | FileCheck %s -check-prefix=READOBJ
6 # This test checks that on Power PC we can correctly convert x@TPREL
7 # into R_PPC64_TPREL34 for local exec relocations with the value loaded.
9 # MC-NOT: error: invalid variant
11 # READOBJ: 0x0 R_PPC64_TPREL34 x 0x0
13 LocalExecLoad:
14 paddi 3, 13, x@TPREL, 0
15 lwz 3, 0(3)
16 blr