• 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
10fminnmp z0.h, p0/m, z0.h, z1.h
11// CHECK-INST: fminnmp z0.h, p0/m, z0.h, z1.h
12// CHECK-ENCODING: [0x20,0x80,0x55,0x64]
13// CHECK-ERROR: instruction requires: sve2
14// CHECK-UNKNOWN: 20 80 55 64 <unknown>
15
16fminnmp z29.s, p3/m, z29.s, z30.s
17// CHECK-INST: fminnmp z29.s, p3/m, z29.s, z30.s
18// CHECK-ENCODING: [0xdd,0x8f,0x95,0x64]
19// CHECK-ERROR: instruction requires: sve2
20// CHECK-UNKNOWN: dd 8f 95 64 <unknown>
21
22fminnmp z31.d, p7/m, z31.d, z30.d
23// CHECK-INST: fminnmp z31.d, p7/m, z31.d, z30.d
24// CHECK-ENCODING: [0xdf,0x9f,0xd5,0x64]
25// CHECK-ERROR: instruction requires: sve2
26// CHECK-UNKNOWN: df 9f d5 64 <unknown>
27
28// --------------------------------------------------------------------------//
29// Test compatibility with MOVPRFX instruction.
30
31movprfx z31.d, p0/z, z6.d
32// CHECK-INST: movprfx z31.d, p0/z, z6.d
33// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]
34// CHECK-ERROR: instruction requires: sve
35// CHECK-UNKNOWN: df 20 d0 04 <unknown>
36
37fminnmp z31.d, p0/m, z31.d, z30.d
38// CHECK-INST: fminnmp z31.d, p0/m, z31.d, z30.d
39// CHECK-ENCODING: [0xdf,0x83,0xd5,0x64]
40// CHECK-ERROR: instruction requires: sve2
41// CHECK-UNKNOWN: df 83 d5 64 <unknown>
42
43movprfx z31, z6
44// CHECK-INST: movprfx z31, z6
45// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]
46// CHECK-ERROR: instruction requires: sve
47// CHECK-UNKNOWN: df bc 20 04 <unknown>
48
49fminnmp z31.d, p7/m, z31.d, z30.d
50// CHECK-INST: fminnmp z31.d, p7/m, z31.d, z30.d
51// CHECK-ENCODING: [0xdf,0x9f,0xd5,0x64]
52// CHECK-ERROR: instruction requires: sve2
53// CHECK-UNKNOWN: df 9f d5 64 <unknown>
54