brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 9e65e68 Raw
82 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \8// RUN:        | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \10// RUN:   | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12 13sqrdmlah z0.b, z1.b, z31.b14// CHECK-INST: sqrdmlah z0.b, z1.b, z31.b15// CHECK-ENCODING: [0x20,0x70,0x1f,0x44]16// CHECK-ERROR: instruction requires: sve2 or sme17// CHECK-UNKNOWN: 441f7020 <unknown>18 19sqrdmlah z0.h, z1.h, z31.h20// CHECK-INST: sqrdmlah z0.h, z1.h, z31.h21// CHECK-ENCODING: [0x20,0x70,0x5f,0x44]22// CHECK-ERROR: instruction requires: sve2 or sme23// CHECK-UNKNOWN: 445f7020 <unknown>24 25sqrdmlah z0.s, z1.s, z31.s26// CHECK-INST: sqrdmlah z0.s, z1.s, z31.s27// CHECK-ENCODING: [0x20,0x70,0x9f,0x44]28// CHECK-ERROR: instruction requires: sve2 or sme29// CHECK-UNKNOWN: 449f7020 <unknown>30 31sqrdmlah z0.d, z1.d, z31.d32// CHECK-INST: sqrdmlah z0.d, z1.d, z31.d33// CHECK-ENCODING: [0x20,0x70,0xdf,0x44]34// CHECK-ERROR: instruction requires: sve2 or sme35// CHECK-UNKNOWN: 44df7020 <unknown>36 37sqrdmlah z0.h, z1.h, z7.h[7]38// CHECK-INST: sqrdmlah	z0.h, z1.h, z7.h[7]39// CHECK-ENCODING: [0x20,0x10,0x7f,0x44]40// CHECK-ERROR: instruction requires: sve2 or sme41// CHECK-UNKNOWN: 447f1020 <unknown>42 43sqrdmlah z0.s, z1.s, z7.s[3]44// CHECK-INST: sqrdmlah	z0.s, z1.s, z7.s[3]45// CHECK-ENCODING: [0x20,0x10,0xbf,0x44]46// CHECK-ERROR: instruction requires: sve2 or sme47// CHECK-UNKNOWN: 44bf1020 <unknown>48 49sqrdmlah z0.d, z1.d, z15.d[1]50// CHECK-INST: sqrdmlah	z0.d, z1.d, z15.d[1]51// CHECK-ENCODING: [0x20,0x10,0xff,0x44]52// CHECK-ERROR: instruction requires: sve2 or sme53// CHECK-UNKNOWN: 44ff1020 <unknown>54 55 56// --------------------------------------------------------------------------//57// Test compatibility with MOVPRFX instruction.58 59movprfx z0, z760// CHECK-INST: movprfx	z0, z761// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]62// CHECK-ERROR: instruction requires: sve or sme63// CHECK-UNKNOWN: 0420bce0 <unknown>64 65sqrdmlah z0.d, z1.d, z31.d66// CHECK-INST: sqrdmlah z0.d, z1.d, z31.d67// CHECK-ENCODING: [0x20,0x70,0xdf,0x44]68// CHECK-ERROR: instruction requires: sve2 or sme69// CHECK-UNKNOWN: 44df7020 <unknown>70 71movprfx z0, z772// CHECK-INST: movprfx	z0, z773// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]74// CHECK-ERROR: instruction requires: sve or sme75// CHECK-UNKNOWN: 0420bce0 <unknown>76 77sqrdmlah z0.d, z1.d, z15.d[1]78// CHECK-INST: sqrdmlah	z0.d, z1.d, z15.d[1]79// CHECK-ENCODING: [0x20,0x10,0xff,0x44]80// CHECK-ERROR: instruction requires: sve2 or sme81// CHECK-UNKNOWN: 44ff1020 <unknown>82