xref: /aosp_15_r20/external/llvm/test/MC/Mips/module-hardfloat.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 hardfloat
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: Hard float (32-bit CPU, Any FPU) (0x5)
13*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:   CPR1 size: 32
14*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:   Flags 1 [ (0x1)
15*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:     ODDSPREG (0x1)
16*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ:   ]
17*9880d681SAndroid Build Coastguard Worker# CHECK-OBJ: }
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker  .module fp=xx
20*9880d681SAndroid Build Coastguard Worker  .module oddspreg
21*9880d681SAndroid Build Coastguard Worker  .module softfloat
22*9880d681SAndroid Build Coastguard Worker  .module hardfloat
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker# FIXME: Test should include gnu_attributes directive when implemented.
25*9880d681SAndroid Build Coastguard Worker#        An explicit .gnu_attribute must be checked against the effective
26*9880d681SAndroid Build Coastguard Worker#        command line options and any inconsistencies reported via a warning.
27