File: d-memory.s

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (31 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --show-encoding \
# RUN:     | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --show-encoding \
# RUN:     | FileCheck --check-prefixes=ASM-AND-OBJ,ASM %s
# RUN: llvm-mc %s --triple=loongarch32 --mattr=+d --filetype=obj \
# RUN:     | llvm-objdump -d --mattr=+d - \
# RUN:     | FileCheck --check-prefix=ASM-AND-OBJ %s
# RUN: llvm-mc %s --triple=loongarch64 --mattr=+d --filetype=obj \
# RUN:     | llvm-objdump -d --mattr=+d - \
# RUN:     | FileCheck --check-prefix=ASM-AND-OBJ %s

## Support for the 'D' extension implies support for 'F'
# ASM-AND-OBJ: fld.s $ft15, $t3, 250
# ASM: encoding: [0xf7,0xe9,0x03,0x2b]
fld.s $ft15, $t3, 250

# ASM-AND-OBJ: fld.d $ft14, $t5, 114
# ASM: encoding: [0x36,0xca,0x81,0x2b]
fld.d $ft14, $t5, 114

# ASM-AND-OBJ: fst.d $fs4, $a3, 198
# ASM: encoding: [0xfc,0x18,0xc3,0x2b]
fst.d $fs4, $a3, 198

# ASM-AND-OBJ: fldx.d $fs3, $t1, $s8
# ASM: encoding: [0xbb,0x7d,0x34,0x38]
fldx.d $fs3, $t1, $s8

# ASM-AND-OBJ: fstx.d $fa6, $t3, $t5
# ASM: encoding: [0xe6,0x45,0x3c,0x38]
fstx.d $fa6, $t3, $t5