1; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux \
2; RUN:     -mcpu=mips32 %s -o - | FileCheck %s
3; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux \
4; RUN:     -mcpu=mips32r2 -mattr=fp64 %s -o - | FileCheck -check-prefix=CHECK-64 %s
5; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux \
6; RUN:     -mcpu=mips64 -target-abi n32 %s -o - | FileCheck -check-prefix=CHECK-64n %s
7; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 \
8; RUN:     -mattr=soft-float %s -o - | FileCheck  -check-prefix=SOFT %s
9; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32r6 \
10; RUN:     -mattr=soft-float %s -o - | FileCheck  -check-prefix=SOFT %s
11; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips64 \
12; RUN:     -mattr=soft-float -target-abi n64 %s -o - | FileCheck  -check-prefix=SOFT %s
13
14; CHECK: .nan    legacy
15; We don't emit '.module fp=32' for compatibility with binutils 2.24 which
16; doesn't accept .module.
17; CHECK-NOT: .module fp=32
18
19; CHECK-64: .nan    legacy
20; We do emit '.module fp=64' though since it contradicts the default value.
21; CHECK-64: .module fp=64
22
23; CHECK-64n: .nan    legacy
24; We don't emit '.module fp=64' for compatibility with binutils 2.24 which
25; doesn't accept .module.
26; CHECK-64n-NOT: .module fp=64
27
28; SOFT: .module softfloat
29