3 # Check warning and errors in case of input
4 # files with incompatible floating point ABI flags.
6 # RUN: yaml2obj --docnum=1 %s -o %t-dbl.o
7 # RUN: yaml2obj --docnum=2 %s -o %t-sgl.o
8 # RUN: yaml2obj --docnum=3 %s -o %t-soft.o
9 # RUN: yaml2obj --docnum=4 %s -o %t-fp64.o
10 # RUN: yaml2obj --docnum=5 %s -o %t-fp64old.o
11 # RUN: yaml2obj --docnum=6 %s -o %t-fp64a.o
12 # RUN: yaml2obj --docnum=7 %s -o %t-fpxx.o
14 # RUN: not ld.lld %t-dbl.o %t-fp64.o -shared -o /dev/null 2>&1 \
15 # RUN: | FileCheck -check-prefixes=DBLFP64 %s
17 # RUN: not ld.lld %t-sgl.o %t-fp64old.o -shared -o /dev/null 2>&1 \
18 # RUN: | FileCheck -check-prefixes=SGLFP64OLD %s
20 # RUN: not ld.lld %t-soft.o %t-fp64a.o -shared -o /dev/null 2>&1 \
21 # RUN: | FileCheck -check-prefixes=SOFTFP64A %s
23 # RUN: not ld.lld %t-sgl.o %t-fpxx.o -shared -o /dev/null 2>&1 \
24 # RUN: | FileCheck -check-prefixes=SGLFPXX %s
26 # DBLFP64: {{.*}}fp64.o: floating point ABI '-mgp32 -mfp64' is incompatible with target floating point ABI '-mdouble-float'
27 # SGLFP64OLD: {{.*}}fp64old.o: floating point ABI '-mgp32 -mfp64 (old)' is incompatible with target floating point ABI '-msingle-float'
28 # SOFTFP64A: {{.*}}fp64a.o: floating point ABI '-mgp32 -mfp64 -mno-odd-spreg' is incompatible with target floating point ABI '-msoft-float'
29 # SGLFPXX: {{.*}}fpxx.o: floating point ABI '-mfpxx' is incompatible with target floating point ABI '-msingle-float'
38 Flags: [ EF_MIPS_ARCH_64 ]
41 - Name: .MIPS.abiflags
42 Type: SHT_MIPS_ABIFLAGS
57 Flags: [ EF_MIPS_ARCH_64 ]
60 - Name: .MIPS.abiflags
61 Type: SHT_MIPS_ABIFLAGS
76 Flags: [ EF_MIPS_ARCH_64 ]
79 - Name: .MIPS.abiflags
80 Type: SHT_MIPS_ABIFLAGS
95 Flags: [ EF_MIPS_ARCH_64 ]
98 - Name: .MIPS.abiflags
99 Type: SHT_MIPS_ABIFLAGS
114 Flags: [ EF_MIPS_ARCH_64 ]
117 - Name: .MIPS.abiflags
118 Type: SHT_MIPS_ABIFLAGS
133 Flags: [ EF_MIPS_ARCH_64 ]
136 - Name: .MIPS.abiflags
137 Type: SHT_MIPS_ABIFLAGS
152 Flags: [ EF_MIPS_ARCH_64 ]
155 - Name: .MIPS.abiflags
156 Type: SHT_MIPS_ABIFLAGS