brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 607188a Raw
46 lines · plain
1# RUN: llvm-mc -triple=mips64-unknown-linux-gnuabin32 -position-independent %s \2# RUN:   | FileCheck -check-prefix=ASM-PIC32 %s3# RUN: llvm-mc -triple=mips64-unknown-linux-gnu -position-independent %s \4# RUN:   | FileCheck -check-prefix=ASM-PIC64 %s5# RUN: llvm-mc -triple=mips64-unknown-linux-gnuabin32 %s \6# RUN:   | FileCheck -check-prefix=ASM-NPIC %s7# RUN: llvm-mc -triple=mips64-unknown-linux-gnu %s \8# RUN:   | FileCheck -check-prefix=ASM-NPIC %s9 10# RUN: llvm-mc -triple=mips64-unknown-linux-gnuabin32 \11# RUN:         -position-independent -filetype=obj -o - %s \12# RUN:   | llvm-objdump --no-print-imm-hex -d -r - | FileCheck --check-prefix=OBJ32 %s13# RUN: llvm-mc -triple=mips64-unknown-linux-gnu \14# RUN:         -position-independent -filetype=obj -o - %s \15# RUN:   | llvm-objdump --no-print-imm-hex -d -r - | FileCheck --check-prefix=OBJ64 %s16 17# ASM-PIC32:  .text18# ASM-PIC32:  .cplocal $419# ASM-PIC32:  lw $25, %call16(foo)($4)20# ASM-PIC32:  jalr $2521 22# ASM-PIC64:  .text23# ASM-PIC64:  .cplocal $424# ASM-PIC64:  ld $25, %call16(foo)($4)25# ASM-PIC64:  jalr $2526 27# ASM-NPIC:  .text28# ASM-NPIC:  .cplocal $429# ASM-NPIC:  jal foo30 31# OBJ32:   lw $25, 0($4)32# OBJ32: R_MIPS_CALL16 foo33# OBJ32:   jalr $2534# OBJ32: R_MIPS_JALR foo35 36# OBJ64:   ld $25, 0($4)37# OBJ64: R_MIPS_CALL16/R_MIPS_NONE/R_MIPS_NONE foo38# OBJ64:   jalr $2539# OBJ64: R_MIPS_JALR/R_MIPS_NONE/R_MIPS_NONE foo40 41  .text42  .cplocal $443  jal foo44foo:45  nop46