|
| 1 | +# XAndesVSIntLoad - Andes Vector INT4 Load Extension |
| 2 | +# RUN: llvm-mc %s -triple=riscv32 -mattr=+xandesvsinth -show-encoding \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK-ASM %s |
| 4 | +# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xandesvsinth < %s \ |
| 5 | +# RUN: | llvm-objdump --mattr=+xandesvsinth -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=+xandesvsinth -show-encoding \ |
| 10 | +# RUN: | FileCheck -check-prefixes=CHECK-ASM %s |
| 11 | +# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xandesvsinth < %s \ |
| 12 | +# RUN: | llvm-objdump --mattr=+xandesvsinth -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 | +# CHECK-OBJ: nds.vfwcvt.f.n.v v8, v10 |
| 17 | +# CHECK-ASM: nds.vfwcvt.f.n.v v8, v10 |
| 18 | +# CHECK-ASM: encoding: [0x5b,0x44,0xa2,0x02] |
| 19 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 20 | +nds.vfwcvt.f.n.v v8, v10 |
| 21 | +# CHECK-OBJ: nds.vfwcvt.f.n.v v8, v10, v0.t |
| 22 | +# CHECK-ASM: nds.vfwcvt.f.n.v v8, v10, v0.t |
| 23 | +# CHECK-ASM: encoding: [0x5b,0x44,0xa2,0x00] |
| 24 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 25 | +nds.vfwcvt.f.n.v v8, v10, v0.t |
| 26 | +# CHECK-OBJ: nds.vfwcvt.f.nu.v v8, v10 |
| 27 | +# CHECK-ASM: nds.vfwcvt.f.nu.v v8, v10 |
| 28 | +# CHECK-ASM: encoding: [0x5b,0xc4,0xa2,0x02] |
| 29 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 30 | +nds.vfwcvt.f.nu.v v8, v10 |
| 31 | +# CHECK-OBJ: nds.vfwcvt.f.nu.v v8, v10, v0.t |
| 32 | +# CHECK-ASM: nds.vfwcvt.f.nu.v v8, v10, v0.t |
| 33 | +# CHECK-ASM: encoding: [0x5b,0xc4,0xa2,0x00] |
| 34 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 35 | +nds.vfwcvt.f.nu.v v8, v10, v0.t |
| 36 | +# CHECK-OBJ: nds.vfwcvt.f.b.v v8, v10 |
| 37 | +# CHECK-ASM: nds.vfwcvt.f.b.v v8, v10 |
| 38 | +# CHECK-ASM: encoding: [0x5b,0x44,0xa3,0x02] |
| 39 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 40 | +nds.vfwcvt.f.b.v v8, v10 |
| 41 | +# CHECK-OBJ: nds.vfwcvt.f.b.v v8, v10, v0.t |
| 42 | +# CHECK-ASM: nds.vfwcvt.f.b.v v8, v10, v0.t |
| 43 | +# CHECK-ASM: encoding: [0x5b,0x44,0xa3,0x00] |
| 44 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 45 | +nds.vfwcvt.f.b.v v8, v10, v0.t |
| 46 | +# CHECK-OBJ: nds.vfwcvt.f.bu.v v8, v10 |
| 47 | +# CHECK-ASM: nds.vfwcvt.f.bu.v v8, v10 |
| 48 | +# CHECK-ASM: encoding: [0x5b,0xc4,0xa3,0x02] |
| 49 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 50 | +nds.vfwcvt.f.bu.v v8, v10 |
| 51 | +# CHECK-OBJ: nds.vfwcvt.f.bu.v v8, v10, v0.t |
| 52 | +# CHECK-ASM: nds.vfwcvt.f.bu.v v8, v10, v0.t |
| 53 | +# CHECK-ASM: encoding: [0x5b,0xc4,0xa3,0x00] |
| 54 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 55 | +nds.vfwcvt.f.bu.v v8, v10, v0.t |
| 56 | +# CHECK-OBJ: nds.vle4.v v8, (a0) |
| 57 | +# CHECK-ASM: nds.vle4.v v8, (a0) |
| 58 | +# CHECK-ASM: encoding: [0x5b,0x44,0x05,0x06] |
| 59 | +# CHECK-ERROR: instruction requires the following: 'XAndesVSIntH' (Andes Vector Small INT Handling Extension){{$}} |
| 60 | +nds.vle4.v v8, (a0) |
0 commit comments