brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · 948b192 Raw
87 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 12srshr    z0.b, p0/m, z0.b, #113// CHECK-INST: srshr	z0.b, p0/m, z0.b, #114// CHECK-ENCODING: [0xe0,0x81,0x0c,0x04]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 040c81e0 <unknown>17 18srshr    z31.b, p0/m, z31.b, #819// CHECK-INST: srshr	z31.b, p0/m, z31.b, #820// CHECK-ENCODING: [0x1f,0x81,0x0c,0x04]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 040c811f <unknown>23 24srshr    z0.h, p0/m, z0.h, #125// CHECK-INST: srshr	z0.h, p0/m, z0.h, #126// CHECK-ENCODING: [0xe0,0x83,0x0c,0x04]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 040c83e0 <unknown>29 30srshr    z31.h, p0/m, z31.h, #1631// CHECK-INST: srshr	z31.h, p0/m, z31.h, #1632// CHECK-ENCODING: [0x1f,0x82,0x0c,0x04]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 040c821f <unknown>35 36srshr    z0.s, p0/m, z0.s, #137// CHECK-INST: srshr	z0.s, p0/m, z0.s, #138// CHECK-ENCODING: [0xe0,0x83,0x4c,0x04]39// CHECK-ERROR: instruction requires: sve2 or sme40// CHECK-UNKNOWN: 044c83e0 <unknown>41 42srshr    z31.s, p0/m, z31.s, #3243// CHECK-INST: srshr	z31.s, p0/m, z31.s, #3244// CHECK-ENCODING: [0x1f,0x80,0x4c,0x04]45// CHECK-ERROR: instruction requires: sve2 or sme46// CHECK-UNKNOWN: 044c801f <unknown>47 48srshr    z0.d, p0/m, z0.d, #149// CHECK-INST: srshr	z0.d, p0/m, z0.d, #150// CHECK-ENCODING: [0xe0,0x83,0xcc,0x04]51// CHECK-ERROR: instruction requires: sve2 or sme52// CHECK-UNKNOWN: 04cc83e0 <unknown>53 54srshr    z31.d, p0/m, z31.d, #6455// CHECK-INST: srshr	z31.d, p0/m, z31.d, #6456// CHECK-ENCODING: [0x1f,0x80,0x8c,0x04]57// CHECK-ERROR: instruction requires: sve2 or sme58// CHECK-UNKNOWN: 048c801f <unknown>59 60 61// --------------------------------------------------------------------------//62// Test compatibility with MOVPRFX instruction.63 64movprfx z31.d, p0/z, z6.d65// CHECK-INST: movprfx	z31.d, p0/z, z6.d66// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]67// CHECK-ERROR: instruction requires: sve or sme68// CHECK-UNKNOWN: 04d020df <unknown>69 70srshr    z31.d, p0/m, z31.d, #6471// CHECK-INST: srshr	z31.d, p0/m, z31.d, #6472// CHECK-ENCODING: [0x1f,0x80,0x8c,0x04]73// CHECK-ERROR: instruction requires: sve2 or sme74// CHECK-UNKNOWN: 048c801f <unknown>75 76movprfx z31, z677// CHECK-INST: movprfx	z31, z678// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 0420bcdf <unknown>81 82srshr    z31.d, p0/m, z31.d, #6483// CHECK-INST: srshr	z31.d, p0/m, z31.d, #6484// CHECK-ENCODING: [0x1f,0x80,0x8c,0x04]85// CHECK-ERROR: instruction requires: sve2 or sme86// CHECK-UNKNOWN: 048c801f <unknown>87