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 11 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 22 23# Tests double precision floating point instructions available in rv32 and in rv64. 24 25fld 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] 30fsd 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] 35fld 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] 40fsd 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] 45