52 lines · plain
1// RUN: llvm-mc -triple arm -mattr=+dotprod -show-encoding < %s | FileCheck %s --check-prefix=CHECK2// RUN: llvm-mc -triple arm -mcpu=cortex-a55 -show-encoding < %s | FileCheck %s --check-prefix=CHECK3// RUN: llvm-mc -triple arm -mcpu=cortex-a75 -show-encoding < %s | FileCheck %s --check-prefix=CHECK4// RUN: llvm-mc -triple arm -mcpu=cortex-a76 -show-encoding < %s | FileCheck %s --check-prefix=CHECK5// RUN: llvm-mc -triple arm -mcpu=neoverse-n1 -show-encoding < %s | FileCheck %s --check-prefix=CHECK6// RUN: llvm-mc -triple arm -mcpu=neoverse-n2 -show-encoding < %s | FileCheck %s --check-prefix=CHECK7// RUN: llvm-mc -triple arm -mcpu=cortex-a77 -show-encoding < %s | FileCheck %s --check-prefix=CHECK8// RUN: llvm-mc -triple arm -mcpu=cortex-a78 -show-encoding < %s | FileCheck %s --check-prefix=CHECK9// RUN: llvm-mc -triple arm -mcpu=cortex-x1 -show-encoding < %s | FileCheck %s --check-prefix=CHECK10 11// RUN: not llvm-mc -triple arm -mattr=-dotprod -show-encoding < %s 2> %t12// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s13// RUN: not llvm-mc -triple arm -mcpu=cortex-a77 -mattr=-dotprod -show-encoding < %s 2> %t14// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s15// RUN: not llvm-mc -triple arm -mcpu=cortex-a78 -mattr=-dotprod -show-encoding < %s 2> %t16// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s17// RUN: not llvm-mc -triple arm -mcpu=cortex-x1 -mattr=-dotprod -show-encoding < %s 2> %t18// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s19// RUN: not llvm-mc -triple arm -show-encoding < %s 2> %t20// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s21// RUN: not llvm-mc -triple arm -mattr=+v8.1a -show-encoding < %s 2> %t22// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s23// RUN: not llvm-mc -triple arm -mattr=+v8.2a -show-encoding < %s 2> %t24// RUN: FileCheck --check-prefix=CHECK-NO-DOTPROD < %t %s25 26vudot.u8 d0, d1, d227vsdot.s8 d0, d1, d228vudot.u8 q0, q1, q429vsdot.s8 q0, q1, q430vudot.u8 d0, d1, d2[0]31vsdot.s8 d0, d1, d2[1]32vudot.u8 q0, q1, d4[0]33vsdot.s8 q0, q1, d4[1]34 35// CHECK: vudot.u8 d0, d1, d2 @ encoding: [0x12,0x0d,0x21,0xfc]36// CHECK: vsdot.s8 d0, d1, d2 @ encoding: [0x02,0x0d,0x21,0xfc]37// CHECK: vudot.u8 q0, q1, q4 @ encoding: [0x58,0x0d,0x22,0xfc]38// CHECK: vsdot.s8 q0, q1, q4 @ encoding: [0x48,0x0d,0x22,0xfc]39// CHECK: vudot.u8 d0, d1, d2[0] @ encoding: [0x12,0x0d,0x21,0xfe]40// CHECK: vsdot.s8 d0, d1, d2[1] @ encoding: [0x22,0x0d,0x21,0xfe]41// CHECK: vudot.u8 q0, q1, d4[0] @ encoding: [0x54,0x0d,0x22,0xfe]42// CHECK: vsdot.s8 q0, q1, d4[1] @ encoding: [0x64,0x0d,0x22,0xfe]43 44// CHECK-NO-DOTPROD: error: instruction requires: dotprod45// CHECK-NO-DOTPROD: error: instruction requires: dotprod46// CHECK-NO-DOTPROD: error: instruction requires: dotprod47// CHECK-NO-DOTPROD: error: instruction requires: dotprod48// CHECK-NO-DOTPROD: error: instruction requires: dotprod49// CHECK-NO-DOTPROD: error: instruction requires: dotprod50// CHECK-NO-DOTPROD: error: instruction requires: dotprod51// CHECK-NO-DOTPROD: error: instruction requires: dotprod52