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.
27 # CHECK-ALIAS: fld ft0, 64(sp)
28 # CHECK-INST: c.fldsp ft0, 64(sp)
29 # CHECK: # encoding: [0x06,0x20]
32 # CHECK-ALIAS: fsd ft0, 64(sp)
33 # CHECK-INST: c.fsdsp ft0, 64(sp)
34 # CHECK: # encoding: [0x82,0xa0]
37 # CHECK-ALIAS: fld fs0, 248(s0)
38 # CHECK-INST: c.fld fs0, 248(s0)
39 # CHECK: # encoding: [0x60,0x3c]
42 # CHECK-ALIAS: fsd fs0, 248(s0)
43 # CHECK-INST: c.fsd fs0, 248(s0)
44 # CHECK: # encoding: [0x60,0xbc]