brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · e6b212c Raw
56 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 12faddp z0.h, p0/m, z0.h, z1.h13// CHECK-INST: faddp z0.h, p0/m, z0.h, z1.h14// CHECK-ENCODING: [0x20,0x80,0x50,0x64]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 64508020 <unknown>17 18faddp z29.s, p3/m, z29.s, z30.s19// CHECK-INST: faddp z29.s, p3/m, z29.s, z30.s20// CHECK-ENCODING: [0xdd,0x8f,0x90,0x64]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 64908fdd <unknown>23 24faddp z31.d, p7/m, z31.d, z30.d25// CHECK-INST: faddp z31.d, p7/m, z31.d, z30.d26// CHECK-ENCODING: [0xdf,0x9f,0xd0,0x64]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 64d09fdf <unknown>29 30// --------------------------------------------------------------------------//31// Test compatibility with MOVPRFX instruction.32 33movprfx z31.d, p0/z, z6.d34// CHECK-INST: movprfx z31.d, p0/z, z6.d35// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]36// CHECK-ERROR: instruction requires: sve or sme37// CHECK-UNKNOWN: 04d020df <unknown>38 39faddp z31.d, p0/m, z31.d, z30.d40// CHECK-INST: faddp z31.d, p0/m, z31.d, z30.d41// CHECK-ENCODING: [0xdf,0x83,0xd0,0x64]42// CHECK-ERROR: instruction requires: sve2 or sme43// CHECK-UNKNOWN: 64d083df <unknown>44 45movprfx z31, z646// CHECK-INST: movprfx z31, z647// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]48// CHECK-ERROR: instruction requires: sve or sme49// CHECK-UNKNOWN: 0420bcdf <unknown>50 51faddp z31.d, p7/m, z31.d, z30.d52// CHECK-INST: faddp z31.d, p7/m, z31.d, z30.d53// CHECK-ENCODING: [0xdf,0x9f,0xd0,0x64]54// CHECK-ERROR: instruction requires: sve2 or sme55// CHECK-UNKNOWN: 64d09fdf <unknown>56