brintos

brintos / llvm-project-archived public Read only

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