blob: bcea5da59e7512f6b9831db69e97da73e67a05a2 [file] [log] [blame]
Matheus Almeida0051f2d2014-04-16 15:48:55 +00001; Check the emission of directives at the start of an asm file.
Matheus Almeida0051f2d2014-04-16 15:48:55 +00002
3; ### O32 ABI ###
4; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
5; RUN: -relocation-model=static %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +00006; RUN: FileCheck -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +00007
8; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
9; RUN: -relocation-model=pic %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000010; RUN: FileCheck -check-prefixes=CHECK-PIC-O32,CHECK-PIC-O32-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000011
12; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
13; RUN: -relocation-model=static -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000014; RUN: FileCheck -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000015
16; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
17; RUN: -relocation-model=pic -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000018; RUN: FileCheck -check-prefixes=CHECK-PIC-O32,CHECK-PIC-O32-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000019
20; ### N32 ABI ###
21; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000022; RUN: -relocation-model=static -target-abi n32 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000023; RUN: FileCheck -check-prefixes=CHECK-STATIC-N32,CHECK-STATIC-N32-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000024
25; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000026; RUN: -relocation-model=pic -target-abi n32 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000027; RUN: FileCheck -check-prefixes=CHECK-PIC-N32,CHECK-PIC-N32-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000028
29; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000030; RUN: -relocation-model=static -target-abi n32 -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000031; RUN: FileCheck -check-prefixes=CHECK-STATIC-N32,CHECK-STATIC-N32-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000032
33; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000034; RUN: -relocation-model=pic -target-abi n32 -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000035; RUN: FileCheck -check-prefixes=CHECK-PIC-N32,CHECK-PIC-N32-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000036
37; ### N64 ABI ###
38; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000039; RUN: -relocation-model=static -target-abi n64 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000040; RUN: FileCheck -check-prefixes=CHECK-STATIC-N64,CHECK-STATIC-N64-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000041
42; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000043; RUN: -relocation-model=pic -target-abi n64 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000044; RUN: FileCheck -check-prefixes=CHECK-PIC-N64,CHECK-PIC-N64-NLEGACY %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000045
46; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000047; RUN: -relocation-model=static -target-abi n64 -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000048; RUN: FileCheck -check-prefixes=CHECK-STATIC-N64,CHECK-STATIC-N64-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000049
50; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
Eric Christophera5762812015-01-26 17:33:46 +000051; RUN: -relocation-model=pic -target-abi n64 -mattr=+nan2008 %s -o - | \
Daniel Sanders0d972702016-06-24 12:23:17 +000052; RUN: FileCheck -check-prefixes=CHECK-PIC-N64,CHECK-PIC-N64-N2008 %s
Matheus Almeida0051f2d2014-04-16 15:48:55 +000053
54; CHECK-STATIC-O32: .abicalls
55; CHECK-STATIC-O32: .option pic0
56; CHECK-STATIC-O32: .section .mdebug.abi32
57; CHECK-STATIC-O32-NLEGACY: .nan legacy
58; CHECK-STATIC-O32-N2008: .nan 2008
59
60; CHECK-PIC-O32: .abicalls
61; CHECK-PIC-O32-NOT: .option pic0
62; CHECK-PIC-O32: .section .mdebug.abi32
63; CHECK-PIC-O32-NLEGACY: .nan legacy
64; CHECK-PIC-O32-N2008: .nan 2008
65
66; CHECK-STATIC-N32: .abicalls
67; CHECK-STATIC-N32: .option pic0
68; CHECK-STATIC-N32: .section .mdebug.abiN32
69; CHECK-STATIC-N32-NLEGACY: .nan legacy
70; CHECK-STATIC-N32-N2008: .nan 2008
71
72; CHECK-PIC-N32: .abicalls
73; CHECK-PIC-N32-NOT: .option pic0
74; CHECK-PIC-N32: .section .mdebug.abiN32
75; CHECK-PIC-N32-NLEGACY: .nan legacy
76; CHECK-PIC-N32-N2008: .nan 2008
77
Simon Dardisca74dd72017-01-27 11:36:52 +000078; CHECK-STATIC-N64-NOT: .abicalls
Matheus Almeida0051f2d2014-04-16 15:48:55 +000079; CHECK-STATIC-N64-NOT: .option pic0
80; CHECK-STATIC-N64: .section .mdebug.abi64
81; CHECK-STATIC-N64-NLEGACY: .nan legacy
82; CHECK-STATIC-N64-N2008: .nan 2008
83
84; CHECK-PIC-N64: .abicalls
85; CHECK-PIC-N64-NOT: .option pic0
86; CHECK-PIC-N64: .section .mdebug.abi64
87; CHECK-PIC-N64-NLEGACY: .nan legacy
88; CHECK-PIC-N64-N2008: .nan 2008