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 12fcvtzs z0.h, p0/m, z0.h 13// CHECK-INST: fcvtzs z0.h, p0/m, z0.h 14// CHECK-ENCODING: [0x00,0xa0,0x5a,0x65] 15// CHECK-ERROR: instruction requires: sve or sme 16// CHECK-UNKNOWN: 655aa000 <unknown> 17 18fcvtzs z0.s, p0/m, z0.h 19// CHECK-INST: fcvtzs z0.s, p0/m, z0.h 20// CHECK-ENCODING: [0x00,0xa0,0x5c,0x65] 21// CHECK-ERROR: instruction requires: sve or sme 22// CHECK-UNKNOWN: 655ca000 <unknown> 23 24fcvtzs z0.s, p0/m, z0.s 25// CHECK-INST: fcvtzs z0.s, p0/m, z0.s 26// CHECK-ENCODING: [0x00,0xa0,0x9c,0x65] 27// CHECK-ERROR: instruction requires: sve or sme 28// CHECK-UNKNOWN: 659ca000 <unknown> 29 30fcvtzs z0.s, p0/m, z0.d 31// CHECK-INST: fcvtzs z0.s, p0/m, z0.d 32// CHECK-ENCODING: [0x00,0xa0,0xd8,0x65] 33// CHECK-ERROR: instruction requires: sve or sme 34// CHECK-UNKNOWN: 65d8a000 <unknown> 35 36fcvtzs z0.d, p0/m, z0.h 37// CHECK-INST: fcvtzs z0.d, p0/m, z0.h 38// CHECK-ENCODING: [0x00,0xa0,0x5e,0x65] 39// CHECK-ERROR: instruction requires: sve or sme 40// CHECK-UNKNOWN: 655ea000 <unknown> 41 42fcvtzs z0.d, p0/m, z0.s 43// CHECK-INST: fcvtzs z0.d, p0/m, z0.s 44// CHECK-ENCODING: [0x00,0xa0,0xdc,0x65] 45// CHECK-ERROR: instruction requires: sve or sme 46// CHECK-UNKNOWN: 65dca000 <unknown> 47 48fcvtzs z0.d, p0/m, z0.d 49// CHECK-INST: fcvtzs z0.d, p0/m, z0.d 50// CHECK-ENCODING: [0x00,0xa0,0xde,0x65] 51// CHECK-ERROR: instruction requires: sve or sme 52// CHECK-UNKNOWN: 65dea000 <unknown> 53 54 55// --------------------------------------------------------------------------// 56// Test compatibility with MOVPRFX instruction. 57 58movprfx z5.d, p0/z, z7.d 59// CHECK-INST: movprfx z5.d, p0/z, z7.d 60// CHECK-ENCODING: [0xe5,0x20,0xd0,0x04] 61// CHECK-ERROR: instruction requires: sve or sme 62// CHECK-UNKNOWN: 04d020e5 <unknown> 63 64fcvtzs z5.d, p0/m, z0.d 65// CHECK-INST: fcvtzs z5.d, p0/m, z0.d 66// CHECK-ENCODING: [0x05,0xa0,0xde,0x65] 67// CHECK-ERROR: instruction requires: sve or sme 68// CHECK-UNKNOWN: 65dea005 <unknown> 69 70movprfx z5, z7 71// CHECK-INST: movprfx z5, z7 72// CHECK-ENCODING: [0xe5,0xbc,0x20,0x04] 73// CHECK-ERROR: instruction requires: sve or sme 74// CHECK-UNKNOWN: 0420bce5 <unknown> 75 76fcvtzs z5.d, p0/m, z0.d 77// CHECK-INST: fcvtzs z5.d, p0/m, z0.d 78// CHECK-ENCODING: [0x05,0xa0,0xde,0x65] 79// CHECK-ERROR: instruction requires: sve or sme 80// CHECK-UNKNOWN: 65dea005 <unknown> 81