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