[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-dq.s
blob652bd0f5ab650da232b6046691f4336ba2fbb4ef
1 # REQUIRES: ppc
3 # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t
5 # RUN: llvm-objdump -d %t | FileCheck %s
7 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
8 # RUN: ld.lld %t.o -o %t
9 # RUN: llvm-objdump -d %t | FileCheck %s
11 .global test
12 .p2align 4
13 .type test,@function
14 test:
15 .Lgep:
16 addis 2, 12, .TOC.-.Lgep@ha
17 addi 2, 2, .TOC.-.Lgep@l
18 .Llep:
19 .localentry test, .Llep-.Lgep
20 addis 3, 2, qword@toc@ha
21 lxv 3, qword@toc@l(3)
22 addis 3, 2, qword@toc@ha
23 stxv 3, qword@toc@l(3)
24 blr
26 .comm qword, 16, 16
28 # Verify that we don't overwrite any of the extended opcode bits on a DQ form
29 # instruction.
30 # CHECK-LABEL: test
31 # CHECK: addis 3, 2, 1
32 # CHECK-NEXT: lxv 3, -32752(3)
33 # CHECK-NEXT: addis 3, 2, 1
34 # CHECK-NEXT: stxv 3, -32752(3)