brintos

brintos / llvm-project-archived public Read only

0
0
Text · 553 B · 45def84 Raw
19 lines · plain
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 %s7 8target triple = "mipsel-unknown-linux-gnu"9 10define dso_local void @test() #0 {11  ret void12}13 14attributes #0 = { "target-cpu"="mips32r2" "target-features"="+fp64,+mips32r2,+nan2008" }15 16 17; CHECK: .nan    200818; CHECK: .module fp=6419