1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[mips] Use llvm-mc -triple option instead of combination of arch,target-abi,mcpu. NFC

llvm-svn: 348914
This commit is contained in:
Simon Atanasyan 2018-12-12 07:03:04 +00:00
parent 9161f8d75f
commit ee1a9f20a7
29 changed files with 142 additions and 122 deletions

View File

@ -1,13 +1,17 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=ASM
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 \
# RUN: | FileCheck %s -check-prefix=ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o -| \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-O32
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 \
# RUN: -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-O32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -target-abi n32 -filetype=obj -o -| \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N32
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -mcpu=mips64r2 \
# RUN: -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -filetype=obj -o -| \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N64
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -mcpu=mips64r2 \
# RUN: -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N64
# ASM: .text
# ASM: .option pic2

View File

@ -1,18 +1,20 @@
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32 --position-independent -filetype=obj \
# RUN: -o /dev/null 2>&1 | FileCheck %s -check-prefix=O32
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32 \
# RUN: --position-independent -filetype=obj -o /dev/null 2>&1 \
# RUN; | FileCheck %s -check-prefix=O32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 \
# RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s -allow-empty -check-prefix=N32
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj \
# RUN: -o /dev/null 2>&1 \
# RUN: | FileCheck %s -allow-empty -check-prefix=N64
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi=n32 \
# RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s -allow-empty -check-prefix=N64
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj \
# RUN: -o /dev/null 2>&1 \
# RUN: | FileCheck %s -allow-empty -check-prefix=N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi=n32 \
# RUN: -filetype=obj -o - | llvm-objdump -d -r - | \
# RUN: FileCheck %s -check-prefix=NO-STORE
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=NO-STORE
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=NO-STORE
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=NO-STORE
.text
.ent foo

View File

@ -1,20 +1,24 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent -show-encoding | \
# RUN: FileCheck %s
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent \
# RUN: -show-encoding | FileCheck %s
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent -filetype=obj -o -| \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=CHECK-FOR-STORE
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent \
# RUN: -filetype=obj -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=CHECK-FOR-STORE
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+micromips --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefix=MICROMIPS
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+micromips \
# RUN: --position-independent -show-encoding \
# RUN: | FileCheck %s -check-prefix=MICROMIPS
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -show-encoding | \
# RUN: FileCheck %s -check-prefix=NO-PIC
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -show-encoding \
# RUN: | FileCheck %s -check-prefix=NO-PIC
# RUN: llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N32
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 \
# RUN: --position-independent -show-encoding \
# RUN: | FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N64
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu --position-independent \
# RUN: -show-encoding \
# RUN: | FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N64
.text
.ent foo

View File

@ -1,19 +1,19 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent -show-encoding | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent -show-encoding | \
# RUN: FileCheck %s
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent -filetype=obj -o -| \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent -filetype=obj -o -| \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=CHECK-FOR-STORE
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+micromips --position-independent -show-encoding | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+micromips --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefix=MICROMIPS
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -show-encoding | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -show-encoding | \
# RUN: FileCheck %s -check-prefix=NO-PIC
# RUN: llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 --position-independent -show-encoding | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 --position-independent -show-encoding | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu --position-independent -show-encoding | \
# RUN: FileCheck %s -check-prefixes=BAD-ABI,BAD-ABI-N64
.text

View File

@ -1,4 +1,4 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent 2>%t1
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu --position-independent 2>%t1
# RUN: FileCheck %s < %t1
.text

View File

@ -1,18 +1,18 @@
// Test the bits of .eh_frame on mips that are already implemented correctly.
// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips
// RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips-unknown-linux-gnu
// RUN: llvm-objdump -r -section=.rel.eh_frame %t.o | FileCheck --check-prefix=REL32 %s
// RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF32 %s
// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mipsel
// RUN: llvm-mc -filetype=obj %s -o %t.o -triple mipsel-unknown-linux-gnu
// RUN: llvm-objdump -r -section=.rel.eh_frame %t.o | FileCheck --check-prefix=REL32 %s
// RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF32 %s
// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips64
// RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64-unknown-linux-gnu
// RUN: llvm-objdump -r -section=.rela.eh_frame %t.o | FileCheck --check-prefix=REL64 %s
// RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF64 %s
// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips64el
// RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64el-unknown-linux-gnu
// RUN: llvm-objdump -r -section=.rela.eh_frame %t.o | FileCheck --check-prefix=REL64 %s
// RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF64 %s

View File

@ -1,22 +1,22 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -show-encoding |\
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -show-encoding |\
# RUN: FileCheck %s -check-prefix=NORMAL
# RUN: llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 -show-encoding |\
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -show-encoding |\
# RUN: FileCheck %s -check-prefix=NORMAL
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 -show-encoding |\
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -show-encoding |\
# RUN: FileCheck %s -check-prefix=NORMAL
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=micromips -show-encoding |\
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=micromips -show-encoding |\
# RUN: FileCheck %s -check-prefix=MICRO
# Repeat the tests using ELF output.
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-O32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 -filetype=obj | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-NXX,ELF-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 -filetype=obj | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-NXX,ELF-N64
.weak weak_label

View File

@ -1,13 +1,13 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -show-encoding |\
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -show-encoding |\
# RUN: FileCheck %s -check-prefixes=ALL,MIPS,O32
# RUN: llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 -show-encoding |\
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -show-encoding |\
# RUN: FileCheck %s -check-prefixes=ALL,MIPS,N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 -show-encoding |\
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -show-encoding |\
# RUN: FileCheck %s -check-prefixes=ALL,MIPS,N64
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=micromips -show-encoding |\
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=micromips -show-encoding |\
# RUN: FileCheck %s -check-prefixes=ALL,MM,O32-MM
# Repeat the tests but using ELF output. An initial version of this patch did
@ -15,11 +15,11 @@
# MCAsmStreamer or MCELFStreamer. This ensures that the assembly expansion and
# direct objection emission match.
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-O32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 -filetype=obj | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 -filetype=obj | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj | \
# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefixes=ELF-N64
.weak weak_label
@ -51,7 +51,7 @@ local_label:
# N32: lw $25, %got_disp(local_label)($gp) # encoding: [0x8f,0x99,A,A]
# N32: # fixup A - offset: 0, value: %got_disp(local_label), kind: fixup_Mips_GOT_DISP
# N32-NEXT: .reloc ($tmp0), R_MIPS_JALR, local_label
# N32-NEXT: .reloc .Ltmp0, R_MIPS_JALR, local_label
# ELF-N32: 8f 99 00 00 lw $25, 0($gp)
# ELF-N32-NEXT: R_MIPS_GOT_DISP local_label
@ -92,7 +92,7 @@ local_label:
# N32: lw $25, %call16(weak_label)($gp) # encoding: [0x8f,0x99,A,A]
# N32: # fixup A - offset: 0, value: %call16(weak_label), kind: fixup_Mips_CALL16
# N32-NEXT: .reloc ($tmp1), R_MIPS_JALR, weak_label
# N32-NEXT: .reloc .Ltmp1, R_MIPS_JALR, weak_label
# ELF-N32: 8f 99 00 00 lw $25, 0($gp)
# ELF-N32-NEXT: R_MIPS_CALL16 weak_label
@ -131,7 +131,7 @@ local_label:
# N32: lw $25, %call16(global_label)($gp) # encoding: [0x8f,0x99,A,A]
# N32: # fixup A - offset: 0, value: %call16(global_label), kind: fixup_Mips_CALL16
# N32-NEXT: .reloc ($tmp2), R_MIPS_JALR, global_label
# N32-NEXT: .reloc .Ltmp2, R_MIPS_JALR, global_label
# ELF-N32: 8f 99 00 00 lw $25, 0($gp)
# ELF-N32-NEXT: R_MIPS_CALL16 global_label
@ -205,8 +205,8 @@ local_label:
# ELF-O32-NEXT: 03 20 f8 09 jalr $25
# ELF-O32-NEXT: R_MIPS_JALR $tmp0
# N32: lw $25, %got_disp($tmp4)($gp) # encoding: [0x8f,0x99,A,A]
# N32: # fixup A - offset: 0, value: %got_disp($tmp4), kind: fixup_Mips_GOT_DISP
# N32: lw $25, %got_disp(.Ltmp4)($gp) # encoding: [0x8f,0x99,A,A]
# N32: # fixup A - offset: 0, value: %got_disp(.Ltmp4), kind: fixup_Mips_GOT_DISP
# ELF-N32: 8f 99 00 00 lw $25, 0($gp)
# ELF-N32-NEXT: R_MIPS_GOT_DISP .Ltmp0

View File

@ -1,11 +1,13 @@
# Instructions that are invalid.
#
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 -mattr=+ginv 2>%t1
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r6 \
# RUN: -mattr=+ginv 2>%t1
# RUN: FileCheck %s < %t1
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 -mattr=+ginv 2>%t1
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnu -mcpu=mips64r6 \
# RUN: -mattr=+ginv 2>%t1
# RUN: FileCheck %s < %t1
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 \
# RUN: -mattr=+micromips,+ginv 2>%t1
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r6 \
# RUN: -mattr=+micromips,+ginv 2>%t1
# RUN: FileCheck %s < %t1
ginvi # CHECK: :[[@LINE]]:3: error: too few operands for instruction

View File

@ -1,8 +1,10 @@
# RUN: not llvm-mc -arch mips -mcpu=mips32r2 -mattr=+micromips %s 2>&1 \
# RUN: not llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r2 \
# RUN: -mattr=+micromips %s 2>&1 \
# RUN: | FileCheck --check-prefixes=ALL,MMR2 %s
# RUN: not llvm-mc -arch mips -mcpu=mips32r6 -mattr=+micromips %s 2>&1 \
# RUN: not llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r6 \
# RUN: -mattr=+micromips %s 2>&1 \
# RUN: | FileCheck --check-prefixes=ALL,MMR6 %s
# RUN: not llvm-mc -arch mips -mcpu=mips32r6 %s 2>&1 \
# RUN: not llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r6 %s 2>&1 \
# RUN: | FileCheck --check-prefixes=ALL,MIPS32R6 %s
# This tests the mnemonic spell checker.

View File

@ -1,7 +1,12 @@
# RUN: llvm-mc -arch=mips -show-inst %s | FileCheck --check-prefix=STATIC %s
# RUN: llvm-mc -arch=mips -position-independent -show-inst %s | FileCheck --check-prefix=PIC %s
# RUN: llvm-mc -arch=mips -mattr=+micromips -show-inst %s | FileCheck --check-prefix=STATIC-MM %s
# RUN: llvm-mc -arch=mips -mattr=+micromips -position-independent -show-inst %s | FileCheck --check-prefix=PIC-MM %s
# RUN: llvm-mc -triple mips-unknown-linux-gnu -show-inst %s \
# RUN: | FileCheck --check-prefix=STATIC %s
# RUN: llvm-mc -triple mips-unknown-linux-gnu -position-independent \
# RUN: -show-inst %s | FileCheck --check-prefix=PIC %s
# RUN: llvm-mc -triple mips-unknown-linux-gnu -mattr=+micromips -show-inst %s \
# RUN: | FileCheck --check-prefix=STATIC-MM %s
# RUN: llvm-mc -triple mips-unknown-linux-gnu -mattr=+micromips \
# RUN: -position-independent -show-inst %s \
# RUN: | FileCheck --check-prefix=PIC-MM %s
.text
j foo

View File

@ -1,7 +1,7 @@
# RUN: not llvm-mc -arch=mips %s 2>%t1
# RUN: not llvm-mc -triple mips-unknown-linux-gnu %s 2>%t1
# RUN: FileCheck --check-prefix=O32 %s < %t1
# RUN: not llvm-mc -arch=mips64 %s 2>%t1
# RUN: not llvm-mc -triple mips64-unknown-linux-gnu %s 2>%t1
# RUN: FileCheck --check-prefix=N64 %s < %t1
# Check that subu only rejects any non-constant values.

View File

@ -1,4 +1,5 @@
# RUN: llvm-mc -arch=mips -mcpu=mips32r3 -mattr=+micromips,+fp64 -show-encoding -show-inst %s \
# RUN: llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r3 \
# RUN: -mattr=+micromips,+fp64 -show-encoding -show-inst %s \
# RUN: | FileCheck %s
abs.d $f0, $f12 # CHECK: abs.d $f0, $f12 # encoding: [0x54,0x0c,0x23,0x7b]

View File

@ -1,6 +1,5 @@
# RUN: llvm-mc -arch=mips -mcpu=mips32r2 -filetype=obj %s -o - | \
# RUN: llvm-readobj -sections -section-data - | \
# RUN: FileCheck %s
# RUN: llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r2 -filetype=obj %s -o - \
# RUN: | llvm-readobj -sections -section-data - | FileCheck %s
mfc0 $16, $15, 1
mfc0 $16, $16, 1

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r3 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r3 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r3 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r3 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r5 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r5 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r5 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r5 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,19 +1,19 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R1,CHECK-OBJ-MIPS
# RUN: llvm-mc /dev/null -arch=mips -mcpu=mips32 -mattr=fpxx -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips-unknown-linux-gnu -mattr=fpxx -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R1,CHECK-OBJ-MIPS
# RUN: llvm-mc /dev/null -arch=mips -mcpu=mips32r6 -mattr=fpxx -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips-unknown-linux-gnu -mcpu=mips32r6 -mattr=fpxx -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R6,CHECK-OBJ-MIPS
# RUN: llvm-mc /dev/null -arch=mips -mcpu=octeon -target-abi n64 -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips64-unknown-linux-gnu -mcpu=octeon -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEON

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -mips-abi-flags - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ

View File

@ -1,9 +1,10 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 -mattr=+msa \
# RUN: | FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 -mattr=+msa \
# RUN: -filetype=obj -o - \
# RUN: | llvm-readobj -sections -section-data -section-relocations - \
# RUN: | FileCheck %s -check-prefix=CHECK-OBJ
# CHECK-ASM: .module fp=32
# CHECK-ASM: .set fp=64

View File

@ -1,14 +1,14 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64,+nooddspreg | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64,+nooddspreg | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64,+nooddspreg -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64,+nooddspreg -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ
# RUN: not llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 -mattr=+nooddspreg 2> %t0
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -mattr=+nooddspreg 2> %t0
# RUN: FileCheck %s -check-prefix=INVALID < %t0
#
# RUN: not llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n64 -mattr=+nooddspreg 2> %t0
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnu -mattr=+nooddspreg 2> %t0
# RUN: FileCheck %s -check-prefix=INVALID < %t0
#
# CHECK-ASM-NOT: .module nooddspreg

View File

@ -1,4 +1,4 @@
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 2> %t0 | \
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64 2> %t0 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
# RUN: FileCheck %s -check-prefix=CHECK-ERROR < %t0
#

View File

@ -1,14 +1,14 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefix=CHECK-OBJ
# RUN: not llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n32 2> %t1
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnuabin32 2> %t1
# RUN: FileCheck %s -check-prefix=INVALID < %t1
#
# RUN: not llvm-mc %s -arch=mips -mcpu=mips64 -target-abi n64 2> %t2
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnu 2> %t2
# RUN: FileCheck %s -check-prefix=INVALID < %t2
#
# CHECK-ASM: .module nooddspreg

View File

@ -1,35 +1,35 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-O32
#
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 -filetype=obj -o - | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-N32
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 | \
# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu | \
# RUN: FileCheck %s -check-prefix=CHECK-ASM
#
# Repeat the -filetype=obj tests but this time use an empty assembly file. The
# output should be unchanged.
# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips64-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-N64
# RUN: llvm-mc /dev/null -arch=mips -mcpu=mips32 -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips-unknown-linux-gnu -mattr=+fp64 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-O32
#
# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -target-abi n32 -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips64-unknown-linux-gnuabin32 -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-N32
# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \
# RUN: llvm-mc /dev/null -triple mips64-unknown-linux-gnu -filetype=obj -o - | \
# RUN: llvm-readobj -sections -section-data -section-relocations - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ-ALL,CHECK-OBJ-N64

View File

@ -1,4 +1,4 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=micromips 2>&1 | FileCheck %s
# RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mattr=micromips 2>&1 | FileCheck %s
.text
.type main, @function

View File

@ -1,4 +1,4 @@
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64,-nooddspreg 2>&1 | \
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mattr=+fp64,-nooddspreg 2>&1 | \
# RUN: FileCheck %s
.module nooddspreg

View File

@ -1,10 +1,10 @@
# Instructions that are invalid.
#
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r5 -mattr=+virt 2>%t1
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r5 -mattr=+virt 2>%t1
# RUN: FileCheck %s < %t1
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r5 -mattr=+virt 2>%t1
# RUN: not llvm-mc %s -triple mips64-unknown-linux-gnu -mcpu=mips64r5 -mattr=+virt 2>%t1
# RUN: FileCheck %s < %t1
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r5 -mattr=+micromips,+virt 2>%t1
# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r5 -mattr=+micromips,+virt 2>%t1
# RUN: FileCheck %s < %t1
mfgc0 # CHECK: :[[@LINE]]:3: error: too few operands for instruction