47 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 12uqshrnb z0.b, z0.h, #113// CHECK-INST: uqshrnb z0.b, z0.h, #114// CHECK-ENCODING: [0x00,0x30,0x2f,0x45]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 452f3000 <unknown>17 18uqshrnb z31.b, z31.h, #819// CHECK-INST: uqshrnb z31.b, z31.h, #820// CHECK-ENCODING: [0xff,0x33,0x28,0x45]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 452833ff <unknown>23 24uqshrnb z0.h, z0.s, #125// CHECK-INST: uqshrnb z0.h, z0.s, #126// CHECK-ENCODING: [0x00,0x30,0x3f,0x45]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 453f3000 <unknown>29 30uqshrnb z31.h, z31.s, #1631// CHECK-INST: uqshrnb z31.h, z31.s, #1632// CHECK-ENCODING: [0xff,0x33,0x30,0x45]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 453033ff <unknown>35 36uqshrnb z0.s, z0.d, #137// CHECK-INST: uqshrnb z0.s, z0.d, #138// CHECK-ENCODING: [0x00,0x30,0x7f,0x45]39// CHECK-ERROR: instruction requires: sve2 or sme40// CHECK-UNKNOWN: 457f3000 <unknown>41 42uqshrnb z31.s, z31.d, #3243// CHECK-INST: uqshrnb z31.s, z31.d, #3244// CHECK-ENCODING: [0xff,0x33,0x60,0x45]45// CHECK-ERROR: instruction requires: sve2 or sme46// CHECK-UNKNOWN: 456033ff <unknown>47