brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 42fa83e Raw
55 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 12eor3 z29.d, z29.d, z30.d, z31.d13// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d14// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 043e3bfd <unknown>17 18 19// --------------------------------------------------------------------------//20// Test aliases.21 22eor3 z29.b, z29.b, z30.b, z31.b23// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d24// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]25// CHECK-ERROR: instruction requires: sve2 or sme26// CHECK-UNKNOWN: 043e3bfd <unknown>27 28eor3 z29.h, z29.h, z30.h, z31.h29// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d30// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]31// CHECK-ERROR: instruction requires: sve2 or sme32// CHECK-UNKNOWN: 043e3bfd <unknown>33 34eor3 z29.s, z29.s, z30.s, z31.s35// CHECK-INST: eor3 z29.d, z29.d, z30.d, z31.d36// CHECK-ENCODING: [0xfd,0x3b,0x3e,0x04]37// CHECK-ERROR: instruction requires: sve2 or sme38// CHECK-UNKNOWN: 043e3bfd <unknown>39 40 41// --------------------------------------------------------------------------//42// Test compatibility with MOVPRFX instruction.43 44movprfx z31, z745// CHECK-INST: movprfx z31, z746// CHECK-ENCODING: [0xff,0xbc,0x20,0x04]47// CHECK-ERROR: instruction requires: sve or sme48// CHECK-UNKNOWN: 0420bcff <unknown>49 50eor3 z31.d, z31.d, z30.d, z29.d51// CHECK-INST: eor3 z31.d, z31.d, z30.d, z29.d52// CHECK-ENCODING: [0xbf,0x3b,0x3e,0x04]53// CHECK-ERROR: instruction requires: sve2 or sme54// CHECK-UNKNOWN: 043e3bbf <unknown>55