[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / RISCV / compress-rv32d.s
blob8cb11309715b37d944398a4897e98b3e87440f7a
1 # RUN: llvm-mc -triple riscv32 -mattr=+c,+d -show-encoding < %s \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s
3 # RUN: llvm-mc -triple riscv32 -mattr=+c,+d -show-encoding \
4 # RUN: -riscv-no-aliases <%s | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5 # RUN: llvm-mc -triple riscv32 -mattr=+c,+d -filetype=obj < %s \
6 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+d -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
8 # RUN: llvm-mc -triple riscv32 -mattr=+c,+d -filetype=obj < %s \
9 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+d -d -M no-aliases - \
10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
12 # RUN: llvm-mc -triple riscv64 -mattr=+c,+d -show-encoding < %s \
13 # RUN: | FileCheck -check-prefixes=CHECK-ALIAS %s
14 # RUN: llvm-mc -triple riscv64 -mattr=+c,+d -show-encoding \
15 # RUN: -riscv-no-aliases <%s | FileCheck -check-prefixes=CHECK-INST %s
16 # RUN: llvm-mc -triple riscv64 -mattr=+c,+d -filetype=obj < %s \
17 # RUN: | llvm-objdump -triple riscv64 -mattr=+c,+d -d - \
18 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
19 # RUN: llvm-mc -triple riscv64 -mattr=+c,+d -filetype=obj < %s \
20 # RUN: | llvm-objdump -triple riscv64 -mattr=+c,+d -d -M no-aliases - \
21 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
23 # Tests double precision floating point instructions available in rv32 and in rv64.
25 fld ft0, 64(sp)
26 # CHECK-BYTES: 06 20
27 # CHECK-ALIAS: fld ft0, 64(sp)
28 # CHECK-INST: c.fldsp ft0, 64(sp)
29 # CHECK: # encoding: [0x06,0x20]
30 fsd ft0, 64(sp)
31 # CHECK-BYTES: 82 a0
32 # CHECK-ALIAS: fsd ft0, 64(sp)
33 # CHECK-INST: c.fsdsp ft0, 64(sp)
34 # CHECK: # encoding: [0x82,0xa0]
35 fld fs0, 248(s0)
36 # CHECK-BYTES: 60 3c
37 # CHECK-ALIAS: fld fs0, 248(s0)
38 # CHECK-INST: c.fld fs0, 248(s0)
39 # CHECK: # encoding: [0x60,0x3c]
40 fsd fs0, 248(s0)
41 # CHECK-BYTES: 60 bc
42 # CHECK-ALIAS: fsd fs0, 248(s0)
43 # CHECK-INST: c.fsd fs0, 248(s0)
44 # CHECK: # encoding: [0x60,0xbc]