xref: /aosp_15_r20/external/llvm/test/MC/Mips/mips-reginfo-fp32.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \
2*9880d681SAndroid Build Coastguard Worker# RUN:   llvm-readobj -s -section-data | \
3*9880d681SAndroid Build Coastguard Worker# RUN:     FileCheck %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker# CHECK:   Section {
6*9880d681SAndroid Build Coastguard Worker# CHECK:    Index:
7*9880d681SAndroid Build Coastguard Worker# CHECK:    Name: .reginfo
8*9880d681SAndroid Build Coastguard Worker# CHECK:    Type: SHT_MIPS_REGINFO (0x70000006)
9*9880d681SAndroid Build Coastguard Worker# CHECK:    Flags [ (0x2)
10*9880d681SAndroid Build Coastguard Worker# CHECK:      SHF_ALLOC (0x2)
11*9880d681SAndroid Build Coastguard Worker# CHECK:    ]
12*9880d681SAndroid Build Coastguard Worker# CHECK:    Size: 24
13*9880d681SAndroid Build Coastguard Worker# CHECK:    SectionData (
14*9880d681SAndroid Build Coastguard Worker# CHECK:      0000: 01010101 00000000 C0007535 00000000
15*9880d681SAndroid Build Coastguard Worker# CHECK:      0010: 00000000 00000000
16*9880d681SAndroid Build Coastguard Worker# CHECK:    )
17*9880d681SAndroid Build Coastguard Worker# CHECK:  }
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker.text
20*9880d681SAndroid Build Coastguard Worker        add $0,$0,$0
21*9880d681SAndroid Build Coastguard Worker        add $8,$0,$0
22*9880d681SAndroid Build Coastguard Worker        add $16,$0,$0
23*9880d681SAndroid Build Coastguard Worker        add $24,$0,$0
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Worker# abs.s - Reads and writes from/to $f0.
26*9880d681SAndroid Build Coastguard Worker        abs.s $f0,$f0
27*9880d681SAndroid Build Coastguard Worker# round.w.d - Reads $f4 and $f5 and writes to $f2.
28*9880d681SAndroid Build Coastguard Worker        round.w.d $f2,$f4
29*9880d681SAndroid Build Coastguard Worker# ceil.w.s - Reads $f8 and writes to $f10.
30*9880d681SAndroid Build Coastguard Worker        ceil.w.s $f10, $f8
31*9880d681SAndroid Build Coastguard Worker# cvt.s.d - Reads from $f12 and $f13 and writes to $f14
32*9880d681SAndroid Build Coastguard Worker        cvt.s.d $f14, $f12
33*9880d681SAndroid Build Coastguard Worker# abs.d - Reads from $f30 and $f31 and writes to $f30 and $f31.
34*9880d681SAndroid Build Coastguard Worker        abs.d $f30,$f30
35