1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-v %s \ 2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \ 4# RUN: | FileCheck %s --check-prefix=CHECK-ERROR 5# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \ 6# RUN: | llvm-objdump -d --mattr=+experimental-v - \ 7# RUN: | FileCheck %s --check-prefix=CHECK-INST 8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \ 9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN 10 11vnclipu.wv v8, v4, v20, v0.t 12# CHECK-INST: vnclipu.wv v8, v4, v20, v0.t 13# CHECK-ENCODING: [0x57,0x04,0x4a,0xb8] 14# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 15# CHECK-UNKNOWN: 57 04 4a b8 <unknown> 16 17vnclipu.wv v8, v4, v20 18# CHECK-INST: vnclipu.wv v8, v4, v20 19# CHECK-ENCODING: [0x57,0x04,0x4a,0xba] 20# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 21# CHECK-UNKNOWN: 57 04 4a ba <unknown> 22 23vnclipu.wx v8, v4, a0, v0.t 24# CHECK-INST: vnclipu.wx v8, v4, a0, v0.t 25# CHECK-ENCODING: [0x57,0x44,0x45,0xb8] 26# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 27# CHECK-UNKNOWN: 57 44 45 b8 <unknown> 28 29vnclipu.wx v8, v4, a0 30# CHECK-INST: vnclipu.wx v8, v4, a0 31# CHECK-ENCODING: [0x57,0x44,0x45,0xba] 32# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 33# CHECK-UNKNOWN: 57 44 45 ba <unknown> 34 35vnclipu.wi v8, v4, 31, v0.t 36# CHECK-INST: vnclipu.wi v8, v4, 31, v0.t 37# CHECK-ENCODING: [0x57,0xb4,0x4f,0xb8] 38# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 39# CHECK-UNKNOWN: 57 b4 4f b8 <unknown> 40 41vnclipu.wi v8, v4, 31 42# CHECK-INST: vnclipu.wi v8, v4, 31 43# CHECK-ENCODING: [0x57,0xb4,0x4f,0xba] 44# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 45# CHECK-UNKNOWN: 57 b4 4f ba <unknown> 46 47vnclip.wv v8, v4, v20, v0.t 48# CHECK-INST: vnclip.wv v8, v4, v20, v0.t 49# CHECK-ENCODING: [0x57,0x04,0x4a,0xbc] 50# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 51# CHECK-UNKNOWN: 57 04 4a bc <unknown> 52 53vnclip.wv v8, v4, v20 54# CHECK-INST: vnclip.wv v8, v4, v20 55# CHECK-ENCODING: [0x57,0x04,0x4a,0xbe] 56# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 57# CHECK-UNKNOWN: 57 04 4a be <unknown> 58 59vnclip.wx v8, v4, a0, v0.t 60# CHECK-INST: vnclip.wx v8, v4, a0, v0.t 61# CHECK-ENCODING: [0x57,0x44,0x45,0xbc] 62# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 63# CHECK-UNKNOWN: 57 44 45 bc <unknown> 64 65vnclip.wx v8, v4, a0 66# CHECK-INST: vnclip.wx v8, v4, a0 67# CHECK-ENCODING: [0x57,0x44,0x45,0xbe] 68# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 69# CHECK-UNKNOWN: 57 44 45 be <unknown> 70 71vnclip.wi v8, v4, 31, v0.t 72# CHECK-INST: vnclip.wi v8, v4, 31, v0.t 73# CHECK-ENCODING: [0x57,0xb4,0x4f,0xbc] 74# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 75# CHECK-UNKNOWN: 57 b4 4f bc <unknown> 76 77vnclip.wi v8, v4, 31 78# CHECK-INST: vnclip.wi v8, v4, 31 79# CHECK-ENCODING: [0x57,0xb4,0x4f,0xbe] 80# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 81# CHECK-UNKNOWN: 57 b4 4f be <unknown> 82