86 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \8// RUN: | llvm-objdump --no-print-imm-hex -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \10// RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12sqshlu z0.b, p0/m, z0.b, #013// CHECK-INST: sqshlu z0.b, p0/m, z0.b, #014// CHECK-ENCODING: [0x00,0x81,0x0f,0x04]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 040f8100 <unknown>17 18sqshlu z31.b, p0/m, z31.b, #719// CHECK-INST: sqshlu z31.b, p0/m, z31.b, #720// CHECK-ENCODING: [0xff,0x81,0x0f,0x04]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 040f81ff <unknown>23 24sqshlu z0.h, p0/m, z0.h, #025// CHECK-INST: sqshlu z0.h, p0/m, z0.h, #026// CHECK-ENCODING: [0x00,0x82,0x0f,0x04]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 040f8200 <unknown>29 30sqshlu z31.h, p0/m, z31.h, #1531// CHECK-INST: sqshlu z31.h, p0/m, z31.h, #1532// CHECK-ENCODING: [0xff,0x83,0x0f,0x04]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 040f83ff <unknown>35 36sqshlu z0.s, p0/m, z0.s, #037// CHECK-INST: sqshlu z0.s, p0/m, z0.s, #038// CHECK-ENCODING: [0x00,0x80,0x4f,0x04]39// CHECK-ERROR: instruction requires: sve2 or sme40// CHECK-UNKNOWN: 044f8000 <unknown>41 42sqshlu z31.s, p0/m, z31.s, #3143// CHECK-INST: sqshlu z31.s, p0/m, z31.s, #3144// CHECK-ENCODING: [0xff,0x83,0x4f,0x04]45// CHECK-ERROR: instruction requires: sve2 or sme46// CHECK-UNKNOWN: 044f83ff <unknown>47 48sqshlu z0.d, p0/m, z0.d, #049// CHECK-INST: sqshlu z0.d, p0/m, z0.d, #050// CHECK-ENCODING: [0x00,0x80,0x8f,0x04]51// CHECK-ERROR: instruction requires: sve2 or sme52// CHECK-UNKNOWN: 048f8000 <unknown>53 54sqshlu z31.d, p0/m, z31.d, #6355// CHECK-INST: sqshlu z31.d, p0/m, z31.d, #6356// CHECK-ENCODING: [0xff,0x83,0xcf,0x04]57// CHECK-ERROR: instruction requires: sve2 or sme58// CHECK-UNKNOWN: 04cf83ff <unknown>59 60// --------------------------------------------------------------------------//61// Test compatibility with MOVPRFX instruction.62 63movprfx z31.d, p0/z, z6.d64// CHECK-INST: movprfx z31.d, p0/z, z6.d65// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]66// CHECK-ERROR: instruction requires: sve or sme67// CHECK-UNKNOWN: 04d020df <unknown>68 69sqshlu z31.d, p0/m, z31.d, #6370// CHECK-INST: sqshlu z31.d, p0/m, z31.d, #6371// CHECK-ENCODING: [0xff,0x83,0xcf,0x04]72// CHECK-ERROR: instruction requires: sve2 or sme73// CHECK-UNKNOWN: 04cf83ff <unknown>74 75movprfx z31, z676// CHECK-INST: movprfx z31, z677// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]78// CHECK-ERROR: instruction requires: sve or sme79// CHECK-UNKNOWN: 0420bcdf <unknown>80 81sqshlu z31.d, p0/m, z31.d, #6382// CHECK-INST: sqshlu z31.d, p0/m, z31.d, #6383// CHECK-ENCODING: [0xff,0x83,0xcf,0x04]84// CHECK-ERROR: instruction requires: sve2 or sme85// CHECK-UNKNOWN: 04cf83ff <unknown>86