brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 9a43f1f Raw
52 lines · plain
1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 2>&1 < %s| FileCheck %s2 3// --------------------------------------------------------------------------//4// Invalid element width5 6bfcvtnt z0.s, p0/z, z1.s7// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width8// CHECK-NEXT: bfcvtnt z0.s, p0/z, z1.s9// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:10 11bfcvtnt z0.d, p0/z, z1.d12// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width13// CHECK-NEXT: bfcvtnt z0.d, p0/z, z1.d14// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:15 16bfcvtnt z0.h, p0/z, z1.h17// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width18// CHECK-NEXT: bfcvtnt z0.h, p0/z, z1.h19// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:20 21bfcvtnt z0.h, p0/z, z1.d22// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width23// CHECK-NEXT: bfcvtnt z0.h, p0/z, z1.d24// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:25 26bfcvtnt z0.h, p0/z, z1.q27// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width28// CHECK-NEXT: bfcvtnt z0.h, p0/z, z1.q29// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}30 31// --------------------------------------------------------------------------//32// Predicate not in restricted predicate range33 34bfcvtnt z0.h, p8/z, z1.s35// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)36// CHECK-NEXT: bfcvtnt z0.h, p8/z, z1.s37// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:38 39// --------------------------------------------------------------------------//40// Negative tests for instructions that are incompatible with movprfx41 42movprfx z0.h, p0/m, z7.h43bfcvtnt z0.h, p0/z, z1.s44// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov45// CHECK-NEXT: bfcvtnt z0.h, p0/z, z1.s46// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:47 48movprfx z0, z749bfcvtnt z0.h, p0/z, z1.s50// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov51// CHECK-NEXT: bfcvtnt z0.h, p0/z, z1.s52// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: