47 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 --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN: | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12cntd x013// CHECK-INST: cntd x014// CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 04e0e3e0 <unknown>17 18cntd x0, all19// CHECK-INST: cntd x020// CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 04e0e3e0 <unknown>23 24cntd x0, all, mul #125// CHECK-INST: cntd x026// CHECK-ENCODING: [0xe0,0xe3,0xe0,0x04]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 04e0e3e0 <unknown>29 30cntd x0, all, mul #1631// CHECK-INST: cntd x0, all, mul #1632// CHECK-ENCODING: [0xe0,0xe3,0xef,0x04]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 04efe3e0 <unknown>35 36cntd x0, pow237// CHECK-INST: cntd x0, pow238// CHECK-ENCODING: [0x00,0xe0,0xe0,0x04]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 04e0e000 <unknown>41 42cntd x0, #2843// CHECK-INST: cntd x0, #2844// CHECK-ENCODING: [0x80,0xe3,0xe0,0x04]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 04e0e380 <unknown>47