xref: /aosp_15_r20/external/llvm/test/MC/Mips/module-softfloat.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
2*9880d681SAndroid Build Coastguard Worker# RUN:   FileCheck %s -check-prefix=CHECK-ASM
3*9880d681SAndroid Build Coastguard Worker#
4*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
5*9880d681SAndroid Build Coastguard Worker# RUN:   llvm-readobj -mips-abi-flags - | \
6*9880d681SAndroid Build Coastguard Worker# RUN:     FileCheck %s -check-prefix=CHECK-OBJ
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker# CHECK-ASM: .module softfloat
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker# Check if the MIPS.abiflags section was correctly emitted:
11*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ: MIPS ABI Flags {
12*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:   FP ABI: Soft float (0x3)
13*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:   CPR1 size: 0
14*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ: }
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker  .module softfloat
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker# FIXME: Test should include gnu_attributes directive when implemented.
19*9880d681SAndroid Build Coastguard Worker#        An explicit .gnu_attribute must be checked against the effective
20*9880d681SAndroid Build Coastguard Worker#        command line options and any inconsistencies reported via a warning.
21