41 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 12pnext p15.b, p15, p15.b13// CHECK-INST: pnext p15.b, p15, p15.b14// CHECK-ENCODING: [0xef,0xc5,0x19,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 2519c5ef <unknown>17 18pnext p0.b, p15, p0.b19// CHECK-INST: pnext p0.b, p15, p0.b20// CHECK-ENCODING: [0xe0,0xc5,0x19,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 2519c5e0 <unknown>23 24pnext p0.h, p15, p0.h25// CHECK-INST: pnext p0.h, p15, p0.h26// CHECK-ENCODING: [0xe0,0xc5,0x59,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 2559c5e0 <unknown>29 30pnext p0.s, p15, p0.s31// CHECK-INST: pnext p0.s, p15, p0.s32// CHECK-ENCODING: [0xe0,0xc5,0x99,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 2599c5e0 <unknown>35 36pnext p0.d, p15, p0.d37// CHECK-INST: pnext p0.d, p15, p0.d38// CHECK-ENCODING: [0xe0,0xc5,0xd9,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 25d9c5e0 <unknown>41