1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \ 8// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST 9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ 10// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN 11 12fmls z0.h, p7/m, z1.h, z31.h 13// CHECK-INST: fmls z0.h, p7/m, z1.h, z31.h 14// CHECK-ENCODING: [0x20,0x3c,0x7f,0x65] 15// CHECK-ERROR: instruction requires: sve or sme 16// CHECK-UNKNOWN: 657f3c20 <unknown> 17 18fmls z0.s, p7/m, z1.s, z31.s 19// CHECK-INST: fmls z0.s, p7/m, z1.s, z31.s 20// CHECK-ENCODING: [0x20,0x3c,0xbf,0x65] 21// CHECK-ERROR: instruction requires: sve or sme 22// CHECK-UNKNOWN: 65bf3c20 <unknown> 23 24fmls z0.d, p7/m, z1.d, z31.d 25// CHECK-INST: fmls z0.d, p7/m, z1.d, z31.d 26// CHECK-ENCODING: [0x20,0x3c,0xff,0x65] 27// CHECK-ERROR: instruction requires: sve or sme 28// CHECK-UNKNOWN: 65ff3c20 <unknown> 29 30fmls z0.h, z1.h, z7.h[7] 31// CHECK-INST: fmls z0.h, z1.h, z7.h[7] 32// CHECK-ENCODING: [0x20,0x04,0x7f,0x64] 33// CHECK-ERROR: instruction requires: sve or sme 34// CHECK-UNKNOWN: 647f0420 <unknown> 35 36fmls z0.s, z1.s, z7.s[3] 37// CHECK-INST: fmls z0.s, z1.s, z7.s[3] 38// CHECK-ENCODING: [0x20,0x04,0xbf,0x64] 39// CHECK-ERROR: instruction requires: sve or sme 40// CHECK-UNKNOWN: 64bf0420 <unknown> 41 42fmls z0.d, z1.d, z7.d[1] 43// CHECK-INST: fmls z0.d, z1.d, z7.d[1] 44// CHECK-ENCODING: [0x20,0x04,0xf7,0x64] 45// CHECK-ERROR: instruction requires: sve or sme 46// CHECK-UNKNOWN: 64f70420 <unknown> 47 48 49// --------------------------------------------------------------------------// 50// Test compatibility with MOVPRFX instruction. 51 52movprfx z0.d, p7/z, z7.d 53// CHECK-INST: movprfx z0.d, p7/z, z7.d 54// CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04] 55// CHECK-ERROR: instruction requires: sve or sme 56// CHECK-UNKNOWN: 04d03ce0 <unknown> 57 58fmls z0.d, p7/m, z1.d, z31.d 59// CHECK-INST: fmls z0.d, p7/m, z1.d, z31.d 60// CHECK-ENCODING: [0x20,0x3c,0xff,0x65] 61// CHECK-ERROR: instruction requires: sve or sme 62// CHECK-UNKNOWN: 65ff3c20 <unknown> 63 64movprfx z0, z7 65// CHECK-INST: movprfx z0, z7 66// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] 67// CHECK-ERROR: instruction requires: sve or sme 68// CHECK-UNKNOWN: 0420bce0 <unknown> 69 70fmls z0.d, p7/m, z1.d, z31.d 71// CHECK-INST: fmls z0.d, p7/m, z1.d, z31.d 72// CHECK-ENCODING: [0x20,0x3c,0xff,0x65] 73// CHECK-ERROR: instruction requires: sve or sme 74// CHECK-UNKNOWN: 65ff3c20 <unknown> 75 76movprfx z0, z7 77// CHECK-INST: movprfx z0, z7 78// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] 79// CHECK-ERROR: instruction requires: sve or sme 80// CHECK-UNKNOWN: 0420bce0 <unknown> 81 82fmls z0.d, z1.d, z7.d[1] 83// CHECK-INST: fmls z0.d, z1.d, z7.d[1] 84// CHECK-ENCODING: [0x20,0x04,0xf7,0x64] 85// CHECK-ERROR: instruction requires: sve or sme 86// CHECK-UNKNOWN: 64f70420 <unknown> 87