76 lines · plain
1; Check the emission of directives at the start of an asm file.2 3; ### O32 ABI ###4; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \5; RUN: -relocation-model=static %s -o - | \6; RUN: FileCheck -DNAN=legacy -DABI=32 -check-prefixes=CHECK,STATIC-O32 %s7 8; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \9; RUN: -relocation-model=pic %s -o - | \10; RUN: FileCheck -DNAN=legacy -DABI=32 -check-prefixes=CHECK,PIC-O32 %s11 12; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \13; RUN: -relocation-model=static -mattr=+nan2008 %s -o - | \14; RUN: FileCheck -DNAN=2008 -DABI=32 -check-prefixes=CHECK,STATIC-O32 %s15 16; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \17; RUN: -relocation-model=pic -mattr=+nan2008 %s -o - | \18; RUN: FileCheck -DNAN=2008 -DABI=32 -check-prefixes=CHECK,PIC-O32 %s19 20; ### N32 ABI ###21; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \22; RUN: -relocation-model=static -target-abi n32 %s -o - | \23; RUN: FileCheck -DNAN=legacy -DABI=N32 -check-prefixes=CHECK,STATIC-N32 %s24 25; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \26; RUN: -relocation-model=pic -target-abi n32 %s -o - | \27; RUN: FileCheck -DNAN=legacy -DABI=N32 -check-prefixes=CHECK,PIC-N32 %s28 29; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \30; RUN: -relocation-model=static -target-abi n32 -mattr=+nan2008 %s -o - | \31; RUN: FileCheck -DNAN=2008 -DABI=N32 -check-prefixes=CHECK,STATIC-N32 %s32 33; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \34; RUN: -relocation-model=pic -target-abi n32 -mattr=+nan2008 %s -o - | \35; RUN: FileCheck -DNAN=2008 -DABI=N32 -check-prefixes=CHECK,PIC-N32 %s36 37; ### N64 ABI ###38; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \39; RUN: -relocation-model=static -target-abi n64 %s -o - | \40; RUN: FileCheck -DNAN=legacy -DABI=64 -check-prefixes=CHECK,STATIC-N64 %s41 42; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \43; RUN: -relocation-model=pic -target-abi n64 %s -o - | \44; RUN: FileCheck -DNAN=legacy -DABI=64 -check-prefixes=CHECK,PIC-N64 %s45 46; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \47; RUN: -relocation-model=static -target-abi n64 -mattr=+nan2008 %s -o - | \48; RUN: FileCheck -DNAN=2008 -DABI=64 -check-prefixes=CHECK,STATIC-N64 %s49 50; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \51; RUN: -relocation-model=pic -target-abi n64 -mattr=+nan2008 %s -o - | \52; RUN: FileCheck -DNAN=2008 -DABI=64 -check-prefixes=CHECK,PIC-N64 %s53 54; STATIC-O32: .abicalls55; STATIC-O32: .option pic056 57; PIC-O32: .abicalls58; PIC-O32-NOT: .option pic059 60; STATIC-N32: .abicalls61; STATIC-N32: .option pic062 63; PIC-N32: .abicalls64; PIC-N32-NOT: .option pic065 66; STATIC-N64-NOT: .abicalls67; STATIC-N64-NOT: .option pic068 69; PIC-N64: .abicalls70; PIC-N64-NOT: .option pic071 72; CHECK: .section .mdebug.abi[[ABI]]73; CHECK: .nan [[NAN]]74; CHECK: .text75; CHECK: .file76