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 12cntw x013// CHECK-INST: cntw x014// CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 04a0e3e0 <unknown>17 18cntw x0, all19// CHECK-INST: cntw x020// CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 04a0e3e0 <unknown>23 24cntw x0, all, mul #125// CHECK-INST: cntw x026// CHECK-ENCODING: [0xe0,0xe3,0xa0,0x04]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 04a0e3e0 <unknown>29 30cntw x0, all, mul #1631// CHECK-INST: cntw x0, all, mul #1632// CHECK-ENCODING: [0xe0,0xe3,0xaf,0x04]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 04afe3e0 <unknown>35 36cntw x0, pow237// CHECK-INST: cntw x0, pow238// CHECK-ENCODING: [0x00,0xe0,0xa0,0x04]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 04a0e000 <unknown>41 42cntw x0, #2843// CHECK-INST: cntw x0, #2844// CHECK-ENCODING: [0x80,0xe3,0xa0,0x04]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 04a0e380 <unknown>47