brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 49f39d8 Raw
62 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 12shsub z0.b, p0/m, z0.b, z1.b13// CHECK-INST: shsub z0.b, p0/m, z0.b, z1.b14// CHECK-ENCODING: [0x20,0x80,0x12,0x44]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 44128020 <unknown>17 18shsub z0.h, p0/m, z0.h, z1.h19// CHECK-INST: shsub z0.h, p0/m, z0.h, z1.h20// CHECK-ENCODING: [0x20,0x80,0x52,0x44]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 44528020 <unknown>23 24shsub z29.s, p7/m, z29.s, z30.s25// CHECK-INST: shsub z29.s, p7/m, z29.s, z30.s26// CHECK-ENCODING: [0xdd,0x9f,0x92,0x44]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 44929fdd <unknown>29 30shsub z31.d, p7/m, z31.d, z30.d31// CHECK-INST: shsub z31.d, p7/m, z31.d, z30.d32// CHECK-ENCODING: [0xdf,0x9f,0xd2,0x44]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 44d29fdf <unknown>35 36// --------------------------------------------------------------------------//37// Test compatibility with MOVPRFX instruction.38 39movprfx z31.d, p0/z, z6.d40// CHECK-INST: movprfx z31.d, p0/z, z6.d41// CHECK-ENCODING: [0xdf,0x20,0xd0,0x04]42// CHECK-ERROR: instruction requires: sve or sme43// CHECK-UNKNOWN: 04d020df <unknown>44 45shsub z31.d, p0/m, z31.d, z30.d46// CHECK-INST: shsub z31.d, p0/m, z31.d, z30.d47// CHECK-ENCODING: [0xdf,0x83,0xd2,0x44]48// CHECK-ERROR: instruction requires: sve2 or sme49// CHECK-UNKNOWN: 44d283df <unknown>50 51movprfx z31, z652// CHECK-INST: movprfx z31, z653// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]54// CHECK-ERROR: instruction requires: sve or sme55// CHECK-UNKNOWN: 0420bcdf <unknown>56 57shsub z31.d, p7/m, z31.d, z30.d58// CHECK-INST: shsub z31.d, p7/m, z31.d, z30.d59// CHECK-ENCODING: [0xdf,0x9f,0xd2,0x44]60// CHECK-ERROR: instruction requires: sve2 or sme61// CHECK-UNKNOWN: 44d29fdf <unknown>62