brintos

brintos / llvm-project-archived public Read only

0
0
Text · 919 B · 652bd0f Raw
35 lines · plain
1# REQUIRES: ppc2 3# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t5# RUN: llvm-objdump -d %t | FileCheck %s6 7# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o8# RUN: ld.lld %t.o -o %t9# RUN: llvm-objdump -d %t | FileCheck %s10 11        .global test12        .p2align        413        .type   test,@function14test:15.Lgep:16        addis 2, 12, .TOC.-.Lgep@ha17        addi  2, 2,  .TOC.-.Lgep@l18.Llep:19        .localentry test, .Llep-.Lgep20        addis 3, 2, qword@toc@ha21        lxv   3, qword@toc@l(3)22        addis 3, 2, qword@toc@ha23        stxv  3, qword@toc@l(3)24        blr25 26       .comm qword, 16, 1627 28# Verify that we don't overwrite any of the extended opcode bits on a DQ form29# instruction.30# CHECK-LABEL: test31# CHECK:         addis 3, 2, 132# CHECK-NEXT:    lxv 3, -32752(3)33# CHECK-NEXT:    addis 3, 2, 134# CHECK-NEXT:    stxv 3, -32752(3)35