• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-NLEGACY %s
7
8; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
9; RUN: -relocation-model=pic %s -o - | \
10; RUN:   FileCheck -check-prefixes=CHECK-PIC-O32,CHECK-PIC-O32-NLEGACY %s
11
12; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
13; RUN: -relocation-model=static -mattr=+nan2008 %s -o - | \
14; RUN:   FileCheck -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-N2008 %s
15
16; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
17; RUN: -relocation-model=pic -mattr=+nan2008 %s -o - | \
18; RUN:   FileCheck -check-prefixes=CHECK-PIC-O32,CHECK-PIC-O32-N2008 %s
19
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 -check-prefixes=CHECK-STATIC-N32,CHECK-STATIC-N32-NLEGACY %s
24
25; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
26; RUN: -relocation-model=pic -target-abi n32 %s -o - | \
27; RUN:   FileCheck -check-prefixes=CHECK-PIC-N32,CHECK-PIC-N32-NLEGACY %s
28
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 -check-prefixes=CHECK-STATIC-N32,CHECK-STATIC-N32-N2008 %s
32
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 -check-prefixes=CHECK-PIC-N32,CHECK-PIC-N32-N2008 %s
36
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 -check-prefixes=CHECK-STATIC-N64,CHECK-STATIC-N64-NLEGACY %s
41
42; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
43; RUN: -relocation-model=pic -target-abi n64 %s -o - | \
44; RUN:   FileCheck -check-prefixes=CHECK-PIC-N64,CHECK-PIC-N64-NLEGACY %s
45
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 -check-prefixes=CHECK-STATIC-N64,CHECK-STATIC-N64-N2008 %s
49
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 -check-prefixes=CHECK-PIC-N64,CHECK-PIC-N64-N2008 %s
53
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
78; CHECK-STATIC-N64: .abicalls
79; 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
89