23 lines · plain
1# RUN: llvm-mc -triple=riscv32 --mattr=+xcvelw -show-encoding %s \2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INSTR3# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+xcvelw < %s \4# RUN: | llvm-objdump --mattr=+xcvelw --no-print-imm-hex -M no-aliases -d -r - \5# RUN: | FileCheck --check-prefix=CHECK-INSTR %s6# RUN: not llvm-mc -triple riscv32 %s 2>&1 \7# RUN: | FileCheck -check-prefix=CHECK-NO-EXT %s8 9cv.elw a0, 1024(a0)10# CHECK-INSTR: cv.elw a0, 1024(a0)11# CHECK-ENCODING: [0x0b,0x35,0x05,0x40]12# CHECK-NO-EXT: instruction requires the following: 'XCVelw' (CORE-V Event Load Word){{$}} 13 14cv.elw a1, 1(a1)15# CHECK-INSTR: cv.elw a1, 1(a1)16# CHECK-ENCODING: [0x8b,0xb5,0x15,0x00]17# CHECK-NO-EXT: instruction requires the following: 'XCVelw' (CORE-V Event Load Word){{$}}18 19cv.elw a2, -1024(a3)20# CHECK-INSTR: cv.elw a2, -1024(a3)21# CHECK-ENCODING: [0x0b,0xb6,0x06,0xc0]22# CHECK-NO-EXT: instruction requires the following: 'XCVelw' (CORE-V Event Load Word){{$}}23