You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
4 months ago
|
# RUN: llvm-mc -triple=mips-unknown-linux-gnu -position-independent %s \
|
||
|
# RUN: | FileCheck -check-prefix=ASM %s
|
||
|
# RUN: llvm-mc -triple=mips64-unknown-linux-gnu -position-independent %s \
|
||
|
# RUN: | FileCheck -check-prefix=ASM %s
|
||
|
# RUN: llvm-mc -triple=mips-unknown-linux-gnu %s \
|
||
|
# RUN: | FileCheck -check-prefix=ASM %s
|
||
|
|
||
|
# RUN: llvm-mc -triple=mips-unknown-linux-gnu \
|
||
|
# RUN: -position-independent -filetype=obj -o - %s \
|
||
|
# RUN: | llvm-objdump -d -r - | FileCheck -check-prefix=OBJ32-PIC %s
|
||
|
# RUN: llvm-mc -triple=mips64-unknown-linux-gnu \
|
||
|
# RUN: -position-independent -filetype=obj -o - %s \
|
||
|
# RUN: | llvm-objdump -d -r - | FileCheck -check-prefix=OBJ64-PIC %s
|
||
|
|
||
|
# RUN: llvm-mc -triple=mips-unknown-linux-gnu \
|
||
|
# RUN: -filetype=obj -o - %s \
|
||
|
# RUN: | llvm-objdump -d -r - | FileCheck -check-prefix=OBJ32-NPIC %s
|
||
|
# RUN: llvm-mc -triple=mips64-unknown-linux-gnu \
|
||
|
# RUN: -filetype=obj -o - %s \
|
||
|
# RUN: | llvm-objdump -d -r - | FileCheck -check-prefix=OBJ64-NPIC %s
|
||
|
|
||
|
# ASM: .cpadd $4
|
||
|
# OBJ32-PIC: addu $4, $4, $gp
|
||
|
# OBJ64-PIC: daddu $4, $4, $gp
|
||
|
# OBJ32-NPIC-NOT: addu
|
||
|
# OBJ64-NPIC-NOT: daddu
|
||
|
|
||
|
.text
|
||
|
.cpadd $4
|