|
| 1 | +# XAndesVSIntLoad - Andes Vector INT4 Load Extension |
| 2 | +# RUN: llvm-mc %s -triple=riscv32 -mattr=+xandesvsintload -show-encoding \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK-ASM %s |
| 4 | +# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xandesvsintload < %s \ |
| 5 | +# RUN: | llvm-objdump --mattr=+xandesvsintload -M no-aliases -d -r - \ |
| 6 | +# RUN: | FileCheck -check-prefixes=CHECK-OBJ %s |
| 7 | +# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \ |
| 8 | +# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 9 | +# RUN: llvm-mc %s -triple=riscv64 -mattr=+xandesvsintload -show-encoding \ |
| 10 | +# RUN: | FileCheck -check-prefixes=CHECK-ASM %s |
| 11 | +# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xandesvsintload < %s \ |
| 12 | +# RUN: | llvm-objdump --mattr=+xandesvsintload -M no-aliases -d -r - \ |
| 13 | +# RUN: | FileCheck -check-prefixes=CHECK-OBJ %s |
| 14 | +# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \ |
| 15 | +# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 16 | + |
| 17 | +# CHECK-OBJ: nds.vln8.v v8, (a0) |
| 18 | +# CHECK-ASM: nds.vln8.v v8, (a0) |
| 19 | +# CHECK-ASM: encoding: [0x5b,0x44,0x25,0x06] |
| 20 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntLoad' (Andes Vector INT4 Load Extension){{$}} |
| 21 | +nds.vln8.v v8, (a0) |
| 22 | + |
| 23 | +# CHECK-OBJ: nds.vln8.v v8, (a0), v0.t |
| 24 | +# CHECK-ASM: nds.vln8.v v8, (a0), v0.t |
| 25 | +# CHECK-ASM: encoding: [0x5b,0x44,0x25,0x04] |
| 26 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntLoad' (Andes Vector INT4 Load Extension){{$}} |
| 27 | +nds.vln8.v v8, (a0), v0.t |
| 28 | + |
| 29 | +# CHECK-OBJ: nds.vlnu8.v v8, (a0) |
| 30 | +# CHECK-ASM: nds.vlnu8.v v8, (a0) |
| 31 | +# CHECK-ASM: encoding: [0x5b,0x44,0x35,0x06] |
| 32 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntLoad' (Andes Vector INT4 Load Extension){{$}} |
| 33 | +nds.vlnu8.v v8, (a0) |
| 34 | + |
| 35 | +# CHECK-OBJ: nds.vlnu8.v v8, (a0), v0.t |
| 36 | +# CHECK-ASM: nds.vlnu8.v v8, (a0), v0.t |
| 37 | +# CHECK-ASM: encoding: [0x5b,0x44,0x35,0x04] |
| 38 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntLoad' (Andes Vector INT4 Load Extension){{$}} |
| 39 | +nds.vlnu8.v v8, (a0), v0.t |
0 commit comments