# RUN: not llvm-mc -disassemble -triple=thumbv8.1m.main-none-eabi -mattr=+mve.fp,+fp64 -show-encoding %s 2>%t | FileCheck %s # RUN: FileCheck --check-prefix=ERROR < %t %s # RUN: not llvm-mc -disassemble -triple=thumbv8.1m.main-none-eabi -show-encoding %s &> %t # RUN: FileCheck --check-prefix=CHECK-NOMVE < %t %s # CHECK: vmvn.i32 q0, #0x35 @ encoding: [0x83,0xef,0x75,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x00] # CHECK: vmvn.i32 q0, #0x3500 @ encoding: [0x83,0xef,0x75,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x02] # CHECK: vmvn.i32 q0, #0x350000 @ encoding: [0x83,0xef,0x75,0x04] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x04] # CHECK: vmvn.i32 q0, #0x35000000 @ encoding: [0x83,0xef,0x75,0x06] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x06] # CHECK: vmvn.i16 q0, #0x35 @ encoding: [0x83,0xef,0x75,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x08] # CHECK: vmvn.i16 q0, #0x3500 @ encoding: [0x83,0xef,0x75,0x0a] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x0a] # CHECK: vmvn.i32 q0, #0x35ff @ encoding: [0x83,0xef,0x75,0x0c] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x0c] # CHECK: vmvn.i32 q0, #0x35ffff @ encoding: [0x83,0xef,0x75,0x0d] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x0d] # CHECK: vmov.i64 q0, #0xffff00ff00ff @ encoding: [0x83,0xef,0x75,0x0e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x0e] # ERROR: [[@LINE+2]]:2: warning: invalid instruction encoding # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x83,0xef,0x75,0x0f] # CHECK: vmov.i32 q0, #0x1bff @ encoding: [0x81,0xef,0x5b,0x0c] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x81,0xef,0x5b,0x0c] # ERROR: [[@LINE+1]]:2: warning: invalid instruction encoding [0xc0,0xef,0x50,0x00] # CHECK: vmov.i16 q0, #0x5c @ encoding: [0x85,0xef,0x5c,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x85,0xef,0x5c,0x08] # CHECK: vmov.i8 q0, #0x4c @ encoding: [0x84,0xef,0x5c,0x0e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x84,0xef,0x5c,0x0e] # CHECK: vmov.f32 q0, #-3.625000e+00 @ encoding: [0x80,0xff,0x5d,0x0f] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x80,0xff,0x5d,0x0f] # CHECK: vmov.f32 q0, #1.000000e+00 @ encoding: [0x87,0xef,0x50,0x0f] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x87,0xef,0x50,0x0f] # CHECK: vmov.f32 s16, s1 @ encoding: [0xb0,0xee,0x60,0x8a] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xee,0x60,0x8a] # CHECK: vmov.f64 d0, d1 @ encoding: [0xb0,0xee,0x41,0x0b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xee,0x41,0x0b] # CHECK: vmov.i64 q0, #0xff0000ffffffffff @ encoding: [0x81,0xff,0x7f,0x0e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x81,0xff,0x7f,0x0e] # CHECK: vmul.i8 q0, q0, q3 @ encoding: [0x00,0xef,0x56,0x09] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x00,0xef,0x56,0x09] # CHECK: vmul.i16 q6, q0, q3 @ encoding: [0x10,0xef,0x56,0xc9] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x10,0xef,0x56,0xc9] # CHECK: vmul.i32 q7, q3, q6 @ encoding: [0x26,0xef,0x5c,0xe9] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x26,0xef,0x5c,0xe9] # CHECK: vqrdmulh.s8 q0, q5, q5 @ encoding: [0x0a,0xff,0x4a,0x0b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x0a,0xff,0x4a,0x0b] # CHECK: vqrdmulh.s16 q1, q4, q2 @ encoding: [0x18,0xff,0x44,0x2b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x18,0xff,0x44,0x2b] # CHECK: vqrdmulh.s32 q0, q5, q0 @ encoding: [0x2a,0xff,0x40,0x0b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x2a,0xff,0x40,0x0b] # CHECK: vqdmulh.s8 q0, q4, q5 @ encoding: [0x08,0xef,0x4a,0x0b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x08,0xef,0x4a,0x0b] # CHECK: vqdmulh.s16 q6, q4, q0 @ encoding: [0x18,0xef,0x40,0xcb] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x18,0xef,0x40,0xcb] # CHECK: vqdmulh.s32 q5, q0, q6 @ encoding: [0x20,0xef,0x4c,0xab] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x20,0xef,0x4c,0xab] # CHECK: vsub.i8 q3, q2, q5 @ encoding: [0x04,0xff,0x4a,0x68] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x04,0xff,0x4a,0x68] # CHECK: vsub.i16 q0, q3, q6 @ encoding: [0x16,0xff,0x4c,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x16,0xff,0x4c,0x08] # CHECK: vsub.i32 q0, q0, q6 @ encoding: [0x20,0xff,0x4c,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x20,0xff,0x4c,0x08] # CHECK: vadd.i8 q0, q2, q2 @ encoding: [0x04,0xef,0x44,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x04,0xef,0x44,0x08] # CHECK: vadd.i16 q2, q2, q1 @ encoding: [0x14,0xef,0x42,0x48] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x14,0xef,0x42,0x48] # CHECK: vadd.i32 q0, q0, q6 @ encoding: [0x20,0xef,0x4c,0x08] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x20,0xef,0x4c,0x08] # CHECK: vqsub.s8 q1, q6, q0 @ encoding: [0x0c,0xef,0x50,0x22] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x0c,0xef,0x50,0x22] # CHECK: vqsub.s16 q0, q6, q1 @ encoding: [0x1c,0xef,0x52,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1c,0xef,0x52,0x02] # CHECK: vqsub.s32 q0, q0, q5 @ encoding: [0x20,0xef,0x5a,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x20,0xef,0x5a,0x02] # CHECK: vqsub.u8 q0, q2, q6 @ encoding: [0x04,0xff,0x5c,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x04,0xff,0x5c,0x02] # CHECK: vqsub.u16 q0, q7, q1 @ encoding: [0x1e,0xff,0x52,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1e,0xff,0x52,0x02] # CHECK: vqsub.u32 q1, q4, q7 @ encoding: [0x28,0xff,0x5e,0x22] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x28,0xff,0x5e,0x22] # CHECK: vqadd.s8 q0, q4, q6 @ encoding: [0x08,0xef,0x5c,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x08,0xef,0x5c,0x00] # CHECK: vqadd.s16 q0, q5, q5 @ encoding: [0x1a,0xef,0x5a,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1a,0xef,0x5a,0x00] # CHECK: vqadd.s32 q0, q0, q4 @ encoding: [0x20,0xef,0x58,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x20,0xef,0x58,0x00] # CHECK: vqadd.u8 q0, q4, q2 @ encoding: [0x08,0xff,0x54,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x08,0xff,0x54,0x00] # CHECK: vqadd.u16 q4, q6, q6 @ encoding: [0x1c,0xff,0x5c,0x80] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1c,0xff,0x5c,0x80] # CHECK: vqadd.u32 q0, q1, q2 @ encoding: [0x22,0xff,0x54,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x22,0xff,0x54,0x00] # CHECK: vabd.s8 q0, q0, q2 @ encoding: [0x00,0xef,0x44,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x00,0xef,0x44,0x07] # CHECK: vabd.s16 q1, q5, q4 @ encoding: [0x1a,0xef,0x48,0x27] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1a,0xef,0x48,0x27] # CHECK: vabd.s32 q2, q3, q2 @ encoding: [0x26,0xef,0x44,0x47] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x26,0xef,0x44,0x47] # CHECK: vabd.u8 q1, q6, q4 @ encoding: [0x0c,0xff,0x48,0x27] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x0c,0xff,0x48,0x27] # CHECK: vabd.u16 q0, q6, q2 @ encoding: [0x1c,0xff,0x44,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1c,0xff,0x44,0x07] # CHECK: vabd.u32 q0, q7, q4 @ encoding: [0x2e,0xff,0x48,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x2e,0xff,0x48,0x07] # CHECK: vrhadd.s8 q0, q1, q1 @ encoding: [0x02,0xef,0x42,0x01] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x02,0xef,0x42,0x01] # CHECK: vrhadd.s16 q0, q1, q0 @ encoding: [0x12,0xef,0x40,0x01] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x12,0xef,0x40,0x01] # CHECK: vrhadd.s32 q0, q4, q1 @ encoding: [0x28,0xef,0x42,0x01] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x28,0xef,0x42,0x01] # CHECK: vrhadd.u8 q1, q0, q6 @ encoding: [0x00,0xff,0x4c,0x21] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x00,0xff,0x4c,0x21] # CHECK: vrhadd.u16 q2, q2, q5 @ encoding: [0x14,0xff,0x4a,0x41] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x14,0xff,0x4a,0x41] # CHECK: vrhadd.u32 q2, q3, q0 @ encoding: [0x26,0xff,0x40,0x41] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x26,0xff,0x40,0x41] # CHECK: vhsub.s8 q0, q0, q2 @ encoding: [0x00,0xef,0x44,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x00,0xef,0x44,0x02] # CHECK: vhsub.s16 q1, q3, q1 @ encoding: [0x16,0xef,0x42,0x22] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x16,0xef,0x42,0x22] # CHECK: vhsub.s32 q0, q2, q5 @ encoding: [0x24,0xef,0x4a,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x24,0xef,0x4a,0x02] # CHECK: vhsub.u8 q0, q4, q2 @ encoding: [0x08,0xff,0x44,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x08,0xff,0x44,0x02] # CHECK: vhsub.u16 q0, q7, q5 @ encoding: [0x1e,0xff,0x4a,0x02] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x1e,0xff,0x4a,0x02] # CHECK: vhsub.u32 q2, q6, q4 @ encoding: [0x2c,0xff,0x48,0x42] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x2c,0xff,0x48,0x42] # CHECK: vhadd.s8 q0, q7, q0 @ encoding: [0x0e,0xef,0x40,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x0e,0xef,0x40,0x00] # CHECK: vhadd.s16 q4, q0, q2 @ encoding: [0x10,0xef,0x44,0x80] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x10,0xef,0x44,0x80] # CHECK: vhadd.s32 q0, q3, q1 @ encoding: [0x26,0xef,0x42,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x26,0xef,0x42,0x00] # CHECK: vhadd.u8 q3, q0, q3 @ encoding: [0x00,0xff,0x46,0x60] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x00,0xff,0x46,0x60] # CHECK: vhadd.u16 q0, q1, q3 @ encoding: [0x12,0xff,0x46,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x12,0xff,0x46,0x00] # CHECK: vhadd.u32 q0, q1, q3 @ encoding: [0x22,0xff,0x46,0x00] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x22,0xff,0x46,0x00] # CHECK: vdup.8 q6, r8 @ encoding: [0xec,0xee,0x10,0x8b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xec,0xee,0x10,0x8b] # CHECK: vdup.16 q7, lr @ encoding: [0xae,0xee,0x30,0xeb] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xae,0xee,0x30,0xeb] # CHECK: vdup.32 q1, r9 @ encoding: [0xa2,0xee,0x10,0x9b] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xa2,0xee,0x10,0x9b] # CHECK: vpte.i8 eq, q0, q0 @ encoding: [0x41,0xfe,0x00,0x8f] # CHECK-NOMVE: [[@LINE+5]]:2: warning: invalid instruction encoding # CHECK: vdupt.16 q0, r1 @ encoding: [0xa0,0xee,0x30,0x1b] # CHECK-NOMVE: [[@LINE+4]]:2: warning: invalid instruction encoding # CHECK: vdupe.16 q0, r1 @ encoding: [0xa0,0xee,0x30,0x1b] # CHECK-NOMVE: [[@LINE+3]]:2: warning: invalid instruction encoding [0x41,0xfe,0x00,0x8f] [0xa0,0xee,0x30,0x1b] [0xa0,0xee,0x30,0x1b] # CHECK: vcls.s8 q2, q1 @ encoding: [0xb0,0xff,0x42,0x44] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xff,0x42,0x44] # CHECK: vcls.s16 q0, q4 @ encoding: [0xb4,0xff,0x48,0x04] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb4,0xff,0x48,0x04] # CHECK: vcls.s32 q0, q0 @ encoding: [0xb8,0xff,0x40,0x04] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb8,0xff,0x40,0x04] # CHECK: vclz.i8 q0, q7 @ encoding: [0xb0,0xff,0xce,0x04] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xff,0xce,0x04] # CHECK: vclz.i16 q4, q7 @ encoding: [0xb4,0xff,0xce,0x84] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb4,0xff,0xce,0x84] # CHECK: vclz.i32 q7, q5 @ encoding: [0xb8,0xff,0xca,0xe4] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb8,0xff,0xca,0xe4] # CHECK: vneg.s8 q1, q0 @ encoding: [0xb1,0xff,0xc0,0x23] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb1,0xff,0xc0,0x23] # CHECK: vneg.s16 q0, q1 @ encoding: [0xb5,0xff,0xc2,0x03] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb5,0xff,0xc2,0x03] # CHECK: vneg.s32 q7, q2 @ encoding: [0xb9,0xff,0xc4,0xe3] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb9,0xff,0xc4,0xe3] # CHECK: vabs.s8 q1, q1 @ encoding: [0xb1,0xff,0x42,0x23] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb1,0xff,0x42,0x23] # CHECK: vabs.s16 q0, q2 @ encoding: [0xb5,0xff,0x44,0x03] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb5,0xff,0x44,0x03] # CHECK: vabs.s32 q0, q7 @ encoding: [0xb9,0xff,0x4e,0x03] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb9,0xff,0x4e,0x03] # CHECK: vqneg.s8 q0, q0 @ encoding: [0xb0,0xff,0xc0,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xff,0xc0,0x07] # CHECK: vqneg.s16 q6, q2 @ encoding: [0xb4,0xff,0xc4,0xc7] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb4,0xff,0xc4,0xc7] # CHECK: vqneg.s32 q7, q2 @ encoding: [0xb8,0xff,0xc4,0xe7] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb8,0xff,0xc4,0xe7] # CHECK: vqabs.s8 q2, q4 @ encoding: [0xb0,0xff,0x48,0x47] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb0,0xff,0x48,0x47] # CHECK: vqabs.s16 q0, q2 @ encoding: [0xb4,0xff,0x44,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb4,0xff,0x44,0x07] # CHECK: vqabs.s32 q0, q5 @ encoding: [0xb8,0xff,0x4a,0x07] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0xb8,0xff,0x4a,0x07] # CHECK: vmina.s8 q1, q7 @ encoding: [0x33,0xee,0x8f,0x3e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x33,0xee,0x8f,0x3e] # CHECK: vmina.s16 q1, q4 @ encoding: [0x37,0xee,0x89,0x3e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x37,0xee,0x89,0x3e] # CHECK: vmina.s32 q0, q7 @ encoding: [0x3b,0xee,0x8f,0x1e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x3b,0xee,0x8f,0x1e] # CHECK: vmaxa.s8 q0, q7 @ encoding: [0x33,0xee,0x8f,0x0e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x33,0xee,0x8f,0x0e] # CHECK: vmaxa.s16 q1, q0 @ encoding: [0x37,0xee,0x81,0x2e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x37,0xee,0x81,0x2e] # CHECK: vmaxa.s32 q1, q0 @ encoding: [0x3b,0xee,0x81,0x2e] # CHECK-NOMVE: [[@LINE+1]]:2: warning: invalid instruction encoding [0x3b,0xee,0x81,0x2e]