57 lines · plain
1# RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32 \2# RUN: --position-independent -filetype=obj -o /dev/null 2>&1 \3# RUN: | FileCheck %s -check-prefix=O324 5# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj \6# RUN: -o /dev/null 2>&1 \7# RUN: | FileCheck %s -allow-empty -check-prefix=N648 9# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj \10# RUN: -o /dev/null 2>&1 \11# RUN: | FileCheck %s -allow-empty -check-prefix=N3212 13# RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj -o - \14# RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=NO-STORE15 16# RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj -o - \17# RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=NO-STORE18 19 .text20 .ent foo21foo:22 .frame $sp, 0, $ra23 .set noreorder24 .set noat25 26 .cpload $2527 .cprestore 828# O32-NOT: error: pseudo-instruction requires $at, which is not available29# N32-NOT: error: pseudo-instruction requires $at, which is not available30# N64-NOT: error: pseudo-instruction requires $at, which is not available31# NO-STORE-NOT: sw $gp, 8($sp)32 33 jal $2534 jal $4, $2535 jal foo36 37 .end foo38 39 .ent bar40bar:41 .frame $sp, 0, $ra42 .set noreorder43 .set noat44 45 .cpload $2546 .cprestore 6553647# O32: :[[@LINE-1]]:3: error: pseudo-instruction requires $at, which is not available48# N32-NOT: error: pseudo-instruction requires $at, which is not available49# N64-NOT: error: pseudo-instruction requires $at, which is not available50# NO-STORE-NOT: sw $gp,51 52 jal $2553 jal $4, $2554 jal bar55 56 .end bar57