1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fp8dot2,+fp8dot4 < %s \ 2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ 4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR 5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fp8dot2,+fp8dot4 < %s \ 6// RUN: | llvm-objdump -d --mattr=+fp8dot2,+fp8dot4 - | FileCheck %s --check-prefix=CHECK-INST 7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fp8dot2,+fp8dot4 < %s \ 8// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN 9// Disassemble encoding and check the re-encoding (-show-encoding) matches. 10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fp8dot2,+fp8dot4 < %s \ 11// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ 12// RUN: | llvm-mc -triple=aarch64 -mattr=+fp8dot2,+fp8dot4 -disassemble -show-encoding \ 13// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 14 15/// VECTOR 16fdot v31.4h, v0.8b, v0.8b 17// CHECK-INST: fdot v31.4h, v0.8b, v0.8b 18// CHECK-ENCODING: [0x1f,0xfc,0x40,0x0e] 19// CHECK-ERROR: instruction requires: fp8dot2 20// CHECK-UNKNOWN: 0e40fc1f <unknown> 21 22fdot v31.8h, v0.16b, v31.16b 23// CHECK-INST: fdot v31.8h, v0.16b, v31.16b 24// CHECK-ENCODING: [0x1f,0xfc,0x5f,0x4e] 25// CHECK-ERROR: instruction requires: fp8dot2 26// CHECK-UNKNOWN: 4e5ffc1f <unknown> 27 28fdot v0.2s, v0.8b, v31.8b 29// CHECK-INST: fdot v0.2s, v0.8b, v31.8b 30// CHECK-ENCODING: [0x00,0xfc,0x1f,0x0e] 31// CHECK-ERROR: instruction requires: fp8dot4 32// CHECK-UNKNOWN: 0e1ffc00 <unknown> 33 34fdot v31.4s, v0.16b, v31.16b 35// CHECK-INST: fdot v31.4s, v0.16b, v31.16b 36// CHECK-ENCODING: [0x1f,0xfc,0x1f,0x4e] 37// CHECK-ERROR: instruction requires: fp8dot4 38// CHECK-UNKNOWN: 4e1ffc1f <unknown> 39 40//INDEXED 41fdot v31.4h, v31.8b, v15.2b[0] 42// CHECK-INST: fdot v31.4h, v31.8b, v15.2b[0] 43// CHECK-ENCODING: [0xff,0x03,0x4f,0x0f] 44// CHECK-ERROR: instruction requires: fp8dot2 45// CHECK-UNKNOWN: 0f4f03ff <unknown> 46 47fdot v26.8H, v22.16B, v9.2B[0] 48// CHECK-INST: fdot v26.8h, v22.16b, v9.2b[0] 49// CHECK-ENCODING: [0xda,0x02,0x49,0x4f] 50// CHECK-ERROR: instruction requires: fp8dot2 51// CHECK-UNKNOWN: 4f4902da <unknown> 52 53fdot v0.8h, v0.16b, v15.2b[7] 54// CHECK-INST: fdot v0.8h, v0.16b, v15.2b[7] 55// CHECK-ENCODING: [0x00,0x08,0x7f,0x4f] 56// CHECK-ERROR: instruction requires: fp8dot2 57// CHECK-UNKNOWN: 4f7f0800 <unknown> 58 59fdot v0.2s, v0.8b, v31.4b[0] 60// CHECK-INST: fdot v0.2s, v0.8b, v31.4b[0] 61// CHECK-ENCODING: [0x00,0x00,0x1f,0x0f] 62// CHECK-ERROR: instruction requires: fp8dot4 63// CHECK-UNKNOWN: 0f1f0000 <unknown> 64 65fdot v0.4s, v31.16b, v0.4b[3] 66// CHECK-INST: fdot v0.4s, v31.16b, v0.4b[3] 67// CHECK-ENCODING: [0xe0,0x0b,0x20,0x4f] 68// CHECK-ERROR: instruction requires: fp8dot4 69// CHECK-UNKNOWN: 4f200be0 <unknown> 70