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=+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=+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 --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN 11 12 13fmlalb z29.s, z30.h, z31.h 14// CHECK-INST: fmlalb z29.s, z30.h, z31.h 15// CHECK-ENCODING: [0xdd,0x83,0xbf,0x64] 16// CHECK-ERROR: instruction requires: sve2 or sme 17// CHECK-UNKNOWN: 64bf83dd <unknown> 18 19fmlalb z0.s, z1.h, z7.h[0] 20// CHECK-INST: fmlalb z0.s, z1.h, z7.h[0] 21// CHECK-ENCODING: [0x20,0x40,0xa7,0x64] 22// CHECK-ERROR: instruction requires: sve2 or sme 23// CHECK-UNKNOWN: 64a74020 <unknown> 24 25fmlalb z30.s, z31.h, z7.h[7] 26// CHECK-INST: fmlalb z30.s, z31.h, z7.h[7] 27// CHECK-ENCODING: [0xfe,0x4b,0xbf,0x64] 28// CHECK-ERROR: instruction requires: sve2 or sme 29// CHECK-UNKNOWN: 64bf4bfe <unknown> 30 31// --------------------------------------------------------------------------// 32// Test compatibility with MOVPRFX instruction. 33 34movprfx z29, z28 35// CHECK-INST: movprfx z29, z28 36// CHECK-ENCODING: [0x9d,0xbf,0x20,0x04] 37// CHECK-ERROR: instruction requires: sve or sme 38// CHECK-UNKNOWN: 0420bf9d <unknown> 39 40fmlalb z29.s, z30.h, z31.h 41// CHECK-INST: fmlalb z29.s, z30.h, z31.h 42// CHECK-ENCODING: [0xdd,0x83,0xbf,0x64] 43// CHECK-ERROR: instruction requires: sve2 or sme 44// CHECK-UNKNOWN: 64bf83dd <unknown> 45 46movprfx z21, z28 47// CHECK-INST: movprfx z21, z28 48// CHECK-ENCODING: [0x95,0xbf,0x20,0x04] 49// CHECK-ERROR: instruction requires: sve or sme 50// CHECK-UNKNOWN: 0420bf95 <unknown> 51 52fmlalb z21.s, z1.h, z7.h[7] 53// CHECK-INST: fmlalb z21.s, z1.h, z7.h[7] 54// CHECK-ENCODING: [0x35,0x48,0xbf,0x64] 55// CHECK-ERROR: instruction requires: sve2 or sme 56// CHECK-UNKNOWN: 64bf4835 <unknown> 57