57 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 13fmlslt z29.s, z30.h, z31.h14// CHECK-INST: fmlslt z29.s, z30.h, z31.h15// CHECK-ENCODING: [0xdd,0xa7,0xbf,0x64]16// CHECK-ERROR: instruction requires: sve2 or sme17// CHECK-UNKNOWN: 64bfa7dd <unknown>18 19fmlslt z0.s, z1.h, z7.h[0]20// CHECK-INST: fmlslt z0.s, z1.h, z7.h[0]21// CHECK-ENCODING: [0x20,0x64,0xa7,0x64]22// CHECK-ERROR: instruction requires: sve2 or sme23// CHECK-UNKNOWN: 64a76420 <unknown>24 25fmlslt z30.s, z31.h, z7.h[7]26// CHECK-INST: fmlslt z30.s, z31.h, z7.h[7]27// CHECK-ENCODING: [0xfe,0x6f,0xbf,0x64]28// CHECK-ERROR: instruction requires: sve2 or sme29// CHECK-UNKNOWN: 64bf6ffe <unknown>30 31// --------------------------------------------------------------------------//32// Test compatibility with MOVPRFX instruction.33 34movprfx z29, z2835// CHECK-INST: movprfx z29, z2836// CHECK-ENCODING: [0x9d,0xbf,0x20,0x04]37// CHECK-ERROR: instruction requires: sve or sme38// CHECK-UNKNOWN: 0420bf9d <unknown>39 40fmlslt z29.s, z30.h, z31.h41// CHECK-INST: fmlslt z29.s, z30.h, z31.h42// CHECK-ENCODING: [0xdd,0xa7,0xbf,0x64]43// CHECK-ERROR: instruction requires: sve2 or sme44// CHECK-UNKNOWN: 64bfa7dd <unknown>45 46movprfx z21, z2847// CHECK-INST: movprfx z21, z2848// CHECK-ENCODING: [0x95,0xbf,0x20,0x04]49// CHECK-ERROR: instruction requires: sve or sme50// CHECK-UNKNOWN: 0420bf95 <unknown>51 52fmlslt z21.s, z1.h, z7.h[7]53// CHECK-INST: fmlslt z21.s, z1.h, z7.h[7]54// CHECK-ENCODING: [0x35,0x6c,0xbf,0x64]55// CHECK-ERROR: instruction requires: sve2 or sme56// CHECK-UNKNOWN: 64bf6c35 <unknown>57