|
1 | 1 | # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %s \
|
2 | 2 | # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
|
| 3 | +# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zve32x %s 2>&1 \ |
| 4 | +# RUN: | FileCheck %s --check-prefix=CHECK-ZVE32X |
3 | 5 | # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \
|
4 | 6 | # RUN: | FileCheck %s --check-prefix=CHECK-ERROR
|
5 | 7 | # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \
|
@@ -71,18 +73,21 @@ vsetvli a2, a0, e32, m8, ta, ma
|
71 | 73 |
|
72 | 74 | vsetvli a2, a0, e32, mf2, ta, ma
|
73 | 75 | # CHECK-INST: vsetvli a2, a0, e32, mf2, ta, ma
|
| 76 | +# CHECK-ZVE32X: :[[#@LINE-2]]:17: warning: use of vtype encodings with SEW > 16 and LMUL == mf2 may not be compatible with all RVV implementations{{$}} |
74 | 77 | # CHECK-ENCODING: [0x57,0x76,0x75,0x0d]
|
75 | 78 | # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}
|
76 | 79 | # CHECK-UNKNOWN: 0d757657 <unknown>
|
77 | 80 |
|
78 | 81 | vsetvli a2, a0, e32, mf4, ta, ma
|
79 | 82 | # CHECK-INST: vsetvli a2, a0, e32, mf4, ta, ma
|
| 83 | +# CHECK-ZVE32X: :[[#@LINE-2]]:17: warning: use of vtype encodings with SEW > 8 and LMUL == mf4 may not be compatible with all RVV implementations{{$}} |
80 | 84 | # CHECK-ENCODING: [0x57,0x76,0x65,0x0d]
|
81 | 85 | # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}
|
82 | 86 | # CHECK-UNKNOWN: 0d657657 <unknown>
|
83 | 87 |
|
84 | 88 | vsetvli a2, a0, e32, mf8, ta, ma
|
85 | 89 | # CHECK-INST: vsetvli a2, a0, e32, mf8, ta, ma
|
| 90 | +# CHECK-ZVE32X: :[[#@LINE-2]]:22: warning: use of vtype encodings with LMUL < SEWMIN/ELEN == mf4 is reserved{{$}} |
86 | 91 | # CHECK-ENCODING: [0x57,0x76,0x55,0x0d]
|
87 | 92 | # CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}
|
88 | 93 | # CHECK-UNKNOWN: 0d557657 <unknown>
|
|
0 commit comments