23 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 12ext z0.b, { z1.b, z2.b }, #013// CHECK-INST: ext z0.b, { z1.b, z2.b }, #014// CHECK-ENCODING: [0x20,0x00,0x60,0x05]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 05600020 <unknown>17 18ext z31.b, { z30.b, z31.b }, #25519// CHECK-INST: ext z31.b, { z30.b, z31.b }, #25520// CHECK-ENCODING: [0xdf,0x1f,0x7f,0x05]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 057f1fdf <unknown>23