xref: /llvm-project/llvm/test/CodeGen/Mips/abiflags-2008-fp64.ll (revision b4b95dee3140e7302d6889173386083978611a12)
1;; When we compile object with "-flto", the info of "-mnan=2008"
2;; and "-mfp32/-mfpxx/-mfp64" will be missing in the result IR file.
3;; Thus the asm/obj files will have wrong format.
4;; With D140270 we extract these info from the first function,
5;; and set it for the whole compile unit.
6; RUN: llc %s -o - | FileCheck %s
7
8target triple = "mipsel-unknown-linux-gnu"
9
10define dso_local void @test() #0 {
11  ret void
12}
13
14attributes #0 = { "target-cpu"="mips32r2" "target-features"="+fp64,+mips32r2,+nan2008" }
15
16
17; CHECK: .nan    2008
18; CHECK: .module fp=64
19