• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
6// RUN:        | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
8// RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9
10sqrdmlsh z0.b, z1.b, z31.b
11// CHECK-INST: sqrdmlsh z0.b, z1.b, z31.b
12// CHECK-ENCODING: [0x20,0x74,0x1f,0x44]
13// CHECK-ERROR: instruction requires: sve2
14// CHECK-UNKNOWN: 20 74 1f 44 <unknown>
15
16sqrdmlsh z0.h, z1.h, z31.h
17// CHECK-INST: sqrdmlsh z0.h, z1.h, z31.h
18// CHECK-ENCODING: [0x20,0x74,0x5f,0x44]
19// CHECK-ERROR: instruction requires: sve2
20// CHECK-UNKNOWN: 20 74 5f 44 <unknown>
21
22sqrdmlsh z0.s, z1.s, z31.s
23// CHECK-INST: sqrdmlsh z0.s, z1.s, z31.s
24// CHECK-ENCODING: [0x20,0x74,0x9f,0x44]
25// CHECK-ERROR: instruction requires: sve2
26// CHECK-UNKNOWN: 20 74 9f 44 <unknown>
27
28sqrdmlsh z0.d, z1.d, z31.d
29// CHECK-INST: sqrdmlsh z0.d, z1.d, z31.d
30// CHECK-ENCODING: [0x20,0x74,0xdf,0x44]
31// CHECK-ERROR: instruction requires: sve2
32// CHECK-UNKNOWN: 20 74 df 44 <unknown>
33
34sqrdmlsh z0.h, z1.h, z7.h[7]
35// CHECK-INST: sqrdmlsh	z0.h, z1.h, z7.h[7]
36// CHECK-ENCODING: [0x20,0x14,0x7f,0x44]
37// CHECK-ERROR: instruction requires: sve2
38// CHECK-UNKNOWN: 20 14 7f 44 <unknown>
39
40sqrdmlsh z0.s, z1.s, z7.s[3]
41// CHECK-INST: sqrdmlsh	z0.s, z1.s, z7.s[3]
42// CHECK-ENCODING: [0x20,0x14,0xbf,0x44]
43// CHECK-ERROR: instruction requires: sve2
44// CHECK-UNKNOWN: 20 14 bf 44 <unknown>
45
46sqrdmlsh z0.d, z1.d, z15.d[1]
47// CHECK-INST: sqrdmlsh	z0.d, z1.d, z15.d[1]
48// CHECK-ENCODING: [0x20,0x14,0xff,0x44]
49// CHECK-ERROR: instruction requires: sve2
50// CHECK-UNKNOWN: 20 14 ff 44 <unknown>
51
52
53// --------------------------------------------------------------------------//
54// Test compatibility with MOVPRFX instruction.
55
56movprfx z0, z7
57// CHECK-INST: movprfx	z0, z7
58// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
59// CHECK-ERROR: instruction requires: sve
60// CHECK-UNKNOWN: e0 bc 20 04 <unknown>
61
62sqrdmlsh z0.d, z1.d, z31.d
63// CHECK-INST: sqrdmlsh z0.d, z1.d, z31.d
64// CHECK-ENCODING: [0x20,0x74,0xdf,0x44]
65// CHECK-ERROR: instruction requires: sve2
66// CHECK-UNKNOWN: 20 74 df 44 <unknown>
67
68movprfx z0, z7
69// CHECK-INST: movprfx	z0, z7
70// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
71// CHECK-ERROR: instruction requires: sve
72// CHECK-UNKNOWN: e0 bc 20 04 <unknown>
73
74sqrdmlsh z0.d, z1.d, z15.d[1]
75// CHECK-INST: sqrdmlsh	z0.d, z1.d, z15.d[1]
76// CHECK-ENCODING: [0x20,0x14,0xff,0x44]
77// CHECK-ERROR: instruction requires: sve2
78// CHECK-UNKNOWN: 20 14 ff 44 <unknown>
79