[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE2 / fcvtx-diagnostics.s
blob5f365496033633a40c6ebf0af5826dc9b2548011
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
4 // --------------------------------------------------------------------------//
5 // Invalid element width
7 fcvtx z0.b, p0/m, z0.b
8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
9 // CHECK-NEXT: fcvtx z0.b, p0/m, z0.b
10 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
12 fcvtx z0.h, p0/m, z0.h
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
14 // CHECK-NEXT: fcvtx z0.h, p0/m, z0.h
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 fcvtx z0.s, p0/m, z0.s
18 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
19 // CHECK-NEXT: fcvtx z0.s, p0/m, z0.s
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 fcvtx z0.d, p0/m, z0.d
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
24 // CHECK-NEXT: fcvtx z0.d, p0/m, z0.d
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
28 // --------------------------------------------------------------------------//
29 // Invalid predicate operation
31 fcvtx z0.s, p0/z, z0.d
32 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
33 // CHECK-NEXT: fcvtx z0.s, p0/z, z0.d
34 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
37 // --------------------------------------------------------------------------//
38 // error: invalid restricted predicate register, expected p0..p7 (without element suffix)
40 fcvtx z0.s, p8/m, z0.d
41 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
42 // CHECK-NEXT: fcvtx z0.s, p8/m, z0.d
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: