brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · b1dd859 Raw
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 13fmlalt z29.s, z30.h, z31.h14// CHECK-INST: fmlalt z29.s, z30.h, z31.h15// CHECK-ENCODING: [0xdd,0x87,0xbf,0x64]16// CHECK-ERROR: instruction requires: sve2 or sme17// CHECK-UNKNOWN: 64bf87dd <unknown>18 19fmlalt z0.s, z1.h, z7.h[0]20// CHECK-INST: fmlalt	z0.s, z1.h, z7.h[0]21// CHECK-ENCODING: [0x20,0x44,0xa7,0x64]22// CHECK-ERROR: instruction requires: sve2 or sme23// CHECK-UNKNOWN: 64a74420 <unknown>24 25fmlalt z30.s, z31.h, z7.h[7]26// CHECK-INST: fmlalt z30.s, z31.h, z7.h[7]27// CHECK-ENCODING: [0xfe,0x4f,0xbf,0x64]28// CHECK-ERROR: instruction requires: sve2 or sme29// CHECK-UNKNOWN: 64bf4ffe <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 40fmlalt z29.s, z30.h, z31.h41// CHECK-INST: fmlalt z29.s, z30.h, z31.h42// CHECK-ENCODING: [0xdd,0x87,0xbf,0x64]43// CHECK-ERROR: instruction requires: sve2 or sme44// CHECK-UNKNOWN: 64bf87dd <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 52fmlalt z21.s, z1.h, z7.h[7]53// CHECK-INST: fmlalt	z21.s, z1.h, z7.h[7]54// CHECK-ENCODING: [0x35,0x4c,0xbf,0x64]55// CHECK-ERROR: instruction requires: sve2 or sme56// CHECK-UNKNOWN: 64bf4c35 <unknown>57