brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · b9359f8 Raw
33 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 12bsl1n z0.d, z0.d, z1.d, z2.d13// CHECK-INST: bsl1n z0.d, z0.d, z1.d, z2.d14// CHECK-ENCODING: [0x40,0x3c,0x61,0x04]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 04613c40 <unknown>17 18 19// --------------------------------------------------------------------------//20// Test compatibility with MOVPRFX instruction.21 22movprfx z31, z723// CHECK-INST: movprfx z31, z724// CHECK-ENCODING: [0xff,0xbc,0x20,0x04]25// CHECK-ERROR: instruction requires: sve or sme26// CHECK-UNKNOWN: 0420bcff <unknown>27 28bsl1n z31.d, z31.d, z30.d, z29.d29// CHECK-INST: bsl1n z31.d, z31.d, z30.d, z29.d30// CHECK-ENCODING: [0xbf,0x3f,0x7e,0x04]31// CHECK-ERROR: instruction requires: sve2 or sme32// CHECK-UNKNOWN: 047e3fbf <unknown>33