111 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \4// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \8// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12decp x0, p0.b13// CHECK-INST: decp x0, p0.b14// CHECK-ENCODING: [0x00,0x88,0x2d,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 252d8800 <unknown>17 18decp x0, p0.h19// CHECK-INST: decp x0, p0.h20// CHECK-ENCODING: [0x00,0x88,0x6d,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 256d8800 <unknown>23 24decp x0, p0.s25// CHECK-INST: decp x0, p0.s26// CHECK-ENCODING: [0x00,0x88,0xad,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 25ad8800 <unknown>29 30decp x0, p0.d31// CHECK-INST: decp x0, p0.d32// CHECK-ENCODING: [0x00,0x88,0xed,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 25ed8800 <unknown>35 36decp xzr, p15.b37// CHECK-INST: decp xzr, p15.b38// CHECK-ENCODING: [0xff,0x89,0x2d,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 252d89ff <unknown>41 42decp xzr, p15.h43// CHECK-INST: decp xzr, p15.h44// CHECK-ENCODING: [0xff,0x89,0x6d,0x25]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 256d89ff <unknown>47 48decp xzr, p15.s49// CHECK-INST: decp xzr, p15.s50// CHECK-ENCODING: [0xff,0x89,0xad,0x25]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 25ad89ff <unknown>53 54decp xzr, p15.d55// CHECK-INST: decp xzr, p15.d56// CHECK-ENCODING: [0xff,0x89,0xed,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25ed89ff <unknown>59 60decp z31.h, p1561// CHECK-INST: decp z31.h, p15.h62// CHECK-ENCODING: [0xff,0x81,0x6d,0x25]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 256d81ff <unknown>65 66decp z31.h, p15.h67// CHECK-INST: decp z31.h, p15.h68// CHECK-ENCODING: [0xff,0x81,0x6d,0x25]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 256d81ff <unknown>71 72decp z31.s, p1573// CHECK-INST: decp z31.s, p15.s74// CHECK-ENCODING: [0xff,0x81,0xad,0x25]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 25ad81ff <unknown>77 78decp z31.s, p15.s79// CHECK-INST: decp z31.s, p15.s80// CHECK-ENCODING: [0xff,0x81,0xad,0x25]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 25ad81ff <unknown>83 84decp z31.d, p1585// CHECK-INST: decp z31.d, p15.d86// CHECK-ENCODING: [0xff,0x81,0xed,0x25]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 25ed81ff <unknown>89 90decp z31.d, p15.d91// CHECK-INST: decp z31.d, p15.d92// CHECK-ENCODING: [0xff,0x81,0xed,0x25]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 25ed81ff <unknown>95 96 97// --------------------------------------------------------------------------//98// Test compatibility with MOVPRFX instruction.99 100movprfx z31, z6101// CHECK-INST: movprfx z31, z6102// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 0420bcdf <unknown>105 106decp z31.d, p15.d107// CHECK-INST: decp z31.d, p15108// CHECK-ENCODING: [0xff,0x81,0xed,0x25]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 25ed81ff <unknown>111