Debian Codegraph @

llvm/test/MC/LoongArch/Basic/Float/d-memory.s

raw
1 # RUN: llvm-mc %s --triple=loongarch32 --show-encoding \
2 # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
3 # RUN: llvm-mc %s --triple=loongarch64 --show-encoding \
4 # RUN: | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
5 # RUN: llvm-mc %s --triple=loongarch32 --filetype=obj \
6 # RUN: | llvm-objdump -d - \
7 # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
8 # RUN: llvm-mc %s --triple=loongarch64 --filetype=obj \
9 # RUN: | llvm-objdump -d - \
10 # RUN: | FileCheck --check-prefix=ASM-AND-OBJ %s
11
12 ## Support for the 'D' extension implies support for 'F'
13 # ASM-AND-OBJ: fld.s $ft15, $t3, 250
14 # ASM: encoding: [0xf7,0xe9,0x03,0x2b]
15 fld.s $ft15, $t3, 250
16
17 # ASM-AND-OBJ: fld.d $ft14, $t5, 114
18 # ASM: encoding: [0x36,0xca,0x81,0x2b]
19 fld.d $ft14, $t5, 114
20
21 # ASM-AND-OBJ: fst.d $fs4, $a3, 198
22 # ASM: encoding: [0xfc,0x18,0xc3,0x2b]
23 fst.d $fs4, $a3, 198
24
25 # ASM-AND-OBJ: fldx.d $fs3, $t1, $s8
26 # ASM: encoding: [0xbb,0x7d,0x34,0x38]
27 fldx.d $fs3, $t1, $s8
28
29 # ASM-AND-OBJ: fstx.d $fa6, $t3, $t5
30 # ASM: encoding: [0xe6,0x45,0x3c,0x38]
31 fstx.d $fa6, $t3, $t5