1 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+dotprod --disassemble < %s | FileCheck %s
2 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mcpu=cortex-a75 --disassemble < %s | FileCheck %s
3 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mcpu=cortex-a55 --disassemble < %s | FileCheck %s
4 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mcpu=tsv110 --disassemble < %s | FileCheck %s
5 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=-dotprod --disassemble < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
16 #CHECK: udot v0.2s, v1.8b, v2.8b
17 #CHECK: sdot v0.2s, v1.8b, v2.8b
18 #CHECK: udot v0.4s, v1.16b, v2.16b
19 #CHECK: sdot v0.4s, v1.16b, v2.16b
20 #CHECK: udot v0.2s, v1.8b, v2.4b[0]
21 #CHECK: sdot v0.2s, v1.8b, v2.4b[1]
22 #CHECK: udot v0.4s, v1.16b, v2.4b[2]
23 #CHECK: sdot v0.4s, v1.16b, v2.4b[3]
25 # CHECK-ERROR: invalid instruction encoding
26 # CHECK-ERROR: invalid instruction encoding
27 # CHECK-ERROR: invalid instruction encoding
28 # CHECK-ERROR: invalid instruction encoding
29 # CHECK-ERROR: invalid instruction encoding
30 # CHECK-ERROR: invalid instruction encoding
31 # CHECK-ERROR: invalid instruction encoding
32 # CHECK-ERROR: invalid instruction encoding