1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+streaming-sve,+bf16 < %s \
2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=-neon < %s 2>&1 \
4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+streaming-sve,+bf16 < %s \
6// RUN:        | llvm-objdump --mattr=+bf16 -d - | FileCheck %s --check-prefix=CHECK-INST
7// Disassemble encoding and check the re-encoding (-show-encoding) matches.
8// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+streaming-sve,+bf16 < %s \
9// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \
10// RUN:        | llvm-mc -triple=aarch64 -mattr=+streaming-sve,+bf16 -disassemble -show-encoding \
11// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
12
13bfcvt h5, s3
14// CHECK-INST: bfcvt h5, s3
15// CHECK-ENCODING: [0x65,0x40,0x63,0x1e]
16// CHECK-ERROR: instruction requires: bf16
17