Home | History | Annotate | Download | only in RISCV
      1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+d -riscv-no-aliases -show-encoding \
      2 # RUN:     | FileCheck -check-prefixes=CHECK,CHECK-INST %s
      3 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+c,+d < %s \
      4 # RUN:     | llvm-objdump -mattr=+d -riscv-no-aliases -d - \
      5 # RUN:     | FileCheck -check-prefix=CHECK-INST %s
      6 # RUN: not llvm-mc -triple riscv32 -mattr=+c\
      7 # RUN:     -riscv-no-aliases -show-encoding < %s 2>&1 \
      8 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
      9 # RUN:     not llvm-mc -triple riscv32 \
     10 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
     11 # RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT %s
     12 
     13 # CHECK-INST: c.fldsp  fs0, 504(sp)
     14 # CHECK: encoding: [0x7e,0x34]
     15 # CHECK-NO-EXT:  error: instruction use requires an option to be enabled
     16 c.fldsp  fs0, 504(sp)
     17 # CHECK-INST: c.fsdsp  fa7, 504(sp)
     18 # CHECK: encoding: [0xc6,0xbf]
     19 # CHECK-NO-EXT:  error: instruction use requires an option to be enabled
     20 c.fsdsp  fa7, 504(sp)
     21 
     22 # CHECK-INST: c.fld  fa3, 248(a5)
     23 # CHECK: encoding: [0xf4,0x3f]
     24 # CHECK-NO-EXT:  error: instruction use requires an option to be enabled
     25 c.fld  fa3, 248(a5)
     26 # CHECK-INST: c.fsd  fa2, 248(a1)
     27 # CHECK: encoding: [0xf0,0xbd]
     28 # CHECK-NO-EXT:  error: instruction use requires an option to be enabled
     29 c.fsd  fa2, 248(a1)
     30