Home | History | Annotate | Download | only in Mips
      1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32 | \
      2 # RUN:   FileCheck %s -check-prefix=CHECK-ASM
      3 #
      4 # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \
      5 # RUN:   llvm-readobj -mips-abi-flags - | \
      6 # RUN:     FileCheck %s -check-prefix=CHECK-OBJ
      7 
      8 # CHECK-ASM: .module hardfloat
      9 
     10 # Check if the MIPS.abiflags section was correctly emitted:
     11 # CHECK-OBJ: MIPS ABI Flags {
     12 # CHECK-OBJ:   FP ABI: Hard float (32-bit CPU, Any FPU) (0x5)
     13 # CHECK-OBJ:   CPR1 size: 32
     14 # CHECK-OBJ:   Flags 1 [ (0x1)
     15 # CHECK-OBJ:     ODDSPREG (0x1)
     16 # CHECK-OBJ:   ]
     17 # CHECK-OBJ: }
     18 
     19   .module fp=xx
     20   .module oddspreg
     21   .module softfloat
     22   .module hardfloat
     23 
     24 # FIXME: Test should include gnu_attributes directive when implemented.
     25 #        An explicit .gnu_attribute must be checked against the effective
     26 #        command line options and any inconsistencies reported via a warning.
     27