• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \
6// RUN:        | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8// RUN:        | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9
10sel     p0.b, p0, p0.b, p0.b
11// CHECK-INST: mov     p0.b, p0/m, p0.b
12// CHECK-ENCODING: [0x10,0x42,0x00,0x25]
13// CHECK-ERROR: instruction requires: sve
14// CHECK-UNKNOWN: 10 42 00 25 <unknown>
15
16sel     p15.b, p15, p15.b, p15.b
17// CHECK-INST: mov     p15.b, p15/m, p15.b
18// CHECK-ENCODING: [0xff,0x7f,0x0f,0x25]
19// CHECK-ERROR: instruction requires: sve
20// CHECK-UNKNOWN: ff 7f 0f 25 <unknown>
21
22sel     z31.b, p15, z31.b, z31.b
23// CHECK-INST: mov     z31.b, p15/m, z31.b
24// CHECK-ENCODING: [0xff,0xff,0x3f,0x05]
25// CHECK-ERROR: instruction requires: sve
26// CHECK-UNKNOWN: ff ff 3f 05 <unknown>
27
28sel     z31.h, p15, z31.h, z31.h
29// CHECK-INST: mov     z31.h, p15/m, z31.h
30// CHECK-ENCODING: [0xff,0xff,0x7f,0x05]
31// CHECK-ERROR: instruction requires: sve
32// CHECK-UNKNOWN: ff ff 7f 05 <unknown>
33
34sel     z31.s, p15, z31.s, z31.s
35// CHECK-INST: mov     z31.s, p15/m, z31.s
36// CHECK-ENCODING: [0xff,0xff,0xbf,0x05]
37// CHECK-ERROR: instruction requires: sve
38// CHECK-UNKNOWN: ff ff bf 05 <unknown>
39
40sel     z31.d, p15, z31.d, z31.d
41// CHECK-INST: mov     z31.d, p15/m, z31.d
42// CHECK-ENCODING: [0xff,0xff,0xff,0x05]
43// CHECK-ERROR: instruction requires: sve
44// CHECK-UNKNOWN: ff ff ff 05 <unknown>
45
46sel     z23.s, p11, z13.s, z8.s
47// CHECK-INST: sel     z23.s, p11, z13.s, z8.s
48// CHECK-ENCODING: [0xb7,0xed,0xa8,0x05]
49// CHECK-ERROR: instruction requires: sve
50// CHECK-UNKNOWN: b7 ed a8 05 <unknown>
51
52sel     z23.d, p11, z13.d, z8.d
53// CHECK-INST: sel     z23.d, p11, z13.d, z8.d
54// CHECK-ENCODING: [0xb7,0xed,0xe8,0x05]
55// CHECK-ERROR: instruction requires: sve
56// CHECK-UNKNOWN: b7 ed e8 05 <unknown>
57
58sel     z23.h, p11, z13.h, z8.h
59// CHECK-INST: sel     z23.h, p11, z13.h, z8.h
60// CHECK-ENCODING: [0xb7,0xed,0x68,0x05]
61// CHECK-ERROR: instruction requires: sve
62// CHECK-UNKNOWN: b7 ed 68 05 <unknown>
63
64sel     z23.b, p11, z13.b, z8.b
65// CHECK-INST: sel     z23.b, p11, z13.b, z8.b
66// CHECK-ENCODING: [0xb7,0xed,0x28,0x05]
67// CHECK-ERROR: instruction requires: sve
68// CHECK-UNKNOWN: b7 ed 28 05 <unknown>
69