Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / udot.s
blob04a204f5c6899cae6a19256f948a9be5d3a12678
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 udot z0.s, z1.b, z31.b
13 // CHECK-INST: udot z0.s, z1.b, z31.b
14 // CHECK-ENCODING: [0x20,0x04,0x9f,0x44]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 449f0420 <unknown>
18 udot z0.d, z1.h, z31.h
19 // CHECK-INST: udot z0.d, z1.h, z31.h
20 // CHECK-ENCODING: [0x20,0x04,0xdf,0x44]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 44df0420 <unknown>
24 udot z0.s, z1.b, z7.b[3]
25 // CHECK-INST: udot z0.s, z1.b, z7.b[3]
26 // CHECK-ENCODING: [0x20,0x04,0xbf,0x44]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 44bf0420 <unknown>
30 udot z0.d, z1.h, z15.h[1]
31 // CHECK-INST: udot z0.d, z1.h, z15.h[1]
32 // CHECK-ENCODING: [0x20,0x04,0xff,0x44]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 44ff0420 <unknown>
37 // --------------------------------------------------------------------------//
38 // Test compatibility with MOVPRFX instruction.
40 movprfx z0, z7
41 // CHECK-INST: movprfx z0, z7
42 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
43 // CHECK-ERROR: instruction requires: sve or sme
44 // CHECK-UNKNOWN: 0420bce0 <unknown>
46 udot z0.d, z1.h, z31.h
47 // CHECK-INST: udot z0.d, z1.h, z31.h
48 // CHECK-ENCODING: [0x20,0x04,0xdf,0x44]
49 // CHECK-ERROR: instruction requires: sve or sme
50 // CHECK-UNKNOWN: 44df0420 <unknown>
52 movprfx z0, z7
53 // CHECK-INST: movprfx z0, z7
54 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
55 // CHECK-ERROR: instruction requires: sve or sme
56 // CHECK-UNKNOWN: 0420bce0 <unknown>
58 udot z0.d, z1.h, z15.h[1]
59 // CHECK-INST: udot z0.d, z1.h, z15.h[1]
60 // CHECK-ENCODING: [0x20,0x04,0xff,0x44]
61 // CHECK-ERROR: instruction requires: sve or sme
62 // CHECK-UNKNOWN: 44ff0420 <unknown>