brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e69e625 Raw
54 lines · plain
1# REQUIRES: ppc2 3# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t1.o4# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/ppc64-no-split-stack.s -o %t2.o5 6# RUN: not ld.lld --defsym __morestack=0x10010000 %t1.o %t2.o -o /dev/null 2>&1 | FileCheck %s7 8# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t1.o9# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-no-split-stack.s -o %t2.o10 11# RUN: not ld.lld --defsym __morestack=0x10010000 %t1.o %t2.o -o /dev/null 2>&1 | FileCheck %s12 13# CHECK: error: {{.*}}.o:(.text): wrong_regs (with -fsplit-stack) calls nss_callee (without -fsplit-stack), but couldn't adjust its prologue14 15        .abiversion 216        .section    ".text"17 18        .p2align 219        .global wrong_regs20        .type wrong_regs, @function21 22wrong_regs:23.Lwr_gep:24    addis 2, 12, .TOC.-.Lwr_gep@ha25    addi 2, 2, .TOC.-.Lwr_gep@l26    .localentry wrong_regs, .-wrong_regs27    ld 0, -0x7040(13)28    addis 5, 2, -129    addi  5, 5, -3230    addi 12, 1, -3231    nop32    cmpld 7, 12, 033    blt- 7, .Lwr_alloc_more34.Lwr_body:35    mflr 036    std 0, 16(1)37    stdu 1, -32(1)38    bl nss_callee39    addi 1, 1, 3240    ld 0, 16(1)41    mtlr 042    blr43.Lwr_alloc_more:44    mflr 045    std 0, 16(1)46    bl __morestack47    ld 0, 16(1)48    mtlr 049    blr50    b .Lwr_body51        .size wrong_regs, .-wrong_regs52 53        .section        .note.GNU-split-stack,"",@progbits54