1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %s \ 2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+streaming-sve < %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=+sve2 < %s \ 8// RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST 9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \ 10// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN 11 12addp z0.b, p0/m, z0.b, z1.b 13// CHECK-INST: addp z0.b, p0/m, z0.b, z1.b 14// CHECK-ENCODING: [0x20,0xa0,0x11,0x44] 15// CHECK-ERROR: instruction requires: streaming-sve or sve2 16// CHECK-UNKNOWN: 20 a0 11 44 <unknown> 17 18addp z0.h, p0/m, z0.h, z1.h 19// CHECK-INST: addp z0.h, p0/m, z0.h, z1.h 20// CHECK-ENCODING: [0x20,0xa0,0x51,0x44] 21// CHECK-ERROR: instruction requires: streaming-sve or sve2 22// CHECK-UNKNOWN: 20 a0 51 44 <unknown> 23 24addp z29.s, p7/m, z29.s, z30.s 25// CHECK-INST: addp z29.s, p7/m, z29.s, z30.s 26// CHECK-ENCODING: [0xdd,0xbf,0x91,0x44] 27// CHECK-ERROR: instruction requires: streaming-sve or sve2 28// CHECK-UNKNOWN: dd bf 91 44 <unknown> 29 30addp z31.d, p7/m, z31.d, z30.d 31// CHECK-INST: addp z31.d, p7/m, z31.d, z30.d 32// CHECK-ENCODING: [0xdf,0xbf,0xd1,0x44] 33// CHECK-ERROR: instruction requires: streaming-sve or sve2 34// CHECK-UNKNOWN: df bf d1 44 <unknown> 35 36// --------------------------------------------------------------------------// 37// Test compatibility with MOVPRFX instruction. 38 39movprfx z31.d, p0/z, z6.d 40// CHECK-INST: movprfx z31.d, p0/z, z6.d 41// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04] 42// CHECK-ERROR: instruction requires: streaming-sve or sve 43// CHECK-UNKNOWN: df 20 d0 04 <unknown> 44 45addp z31.d, p0/m, z31.d, z30.d 46// CHECK-INST: addp z31.d, p0/m, z31.d, z30.d 47// CHECK-ENCODING: [0xdf,0xa3,0xd1,0x44] 48// CHECK-ERROR: instruction requires: streaming-sve or sve2 49// CHECK-UNKNOWN: df a3 d1 44 <unknown> 50 51movprfx z31, z6 52// CHECK-INST: movprfx z31, z6 53// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04] 54// CHECK-ERROR: instruction requires: streaming-sve or sve 55// CHECK-UNKNOWN: df bc 20 04 <unknown> 56 57addp z31.d, p7/m, z31.d, z30.d 58// CHECK-INST: addp z31.d, p7/m, z31.d, z30.d 59// CHECK-ENCODING: [0xdf,0xbf,0xd1,0x44] 60// CHECK-ERROR: instruction requires: streaming-sve or sve2 61// CHECK-UNKNOWN: df bf d1 44 <unknown> 62