brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 34a329c 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 12srhadd z0.b, p0/m, z0.b, z1.b13// CHECK-INST: srhadd z0.b, p0/m, z0.b, z1.b14// CHECK-ENCODING: [0x20,0x80,0x14,0x44]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 44148020 <unknown>17 18srhadd z0.h, p0/m, z0.h, z1.h19// CHECK-INST: srhadd z0.h, p0/m, z0.h, z1.h20// CHECK-ENCODING: [0x20,0x80,0x54,0x44]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 44548020 <unknown>23 24srhadd z29.s, p7/m, z29.s, z30.s25// CHECK-INST: srhadd z29.s, p7/m, z29.s, z30.s26// CHECK-ENCODING: [0xdd,0x9f,0x94,0x44]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 44949fdd <unknown>29 30srhadd z31.d, p7/m, z31.d, z30.d31// CHECK-INST: srhadd z31.d, p7/m, z31.d, z30.d32// CHECK-ENCODING: [0xdf,0x9f,0xd4,0x44]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 44d49fdf <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 45srhadd z31.d, p0/m, z31.d, z30.d46// CHECK-INST: srhadd z31.d, p0/m, z31.d, z30.d47// CHECK-ENCODING: [0xdf,0x83,0xd4,0x44]48// CHECK-ERROR: instruction requires: sve2 or sme49// CHECK-UNKNOWN: 44d483df <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 57srhadd z31.d, p7/m, z31.d, z30.d58// CHECK-INST: srhadd z31.d, p7/m, z31.d, z30.d59// CHECK-ENCODING: [0xdf,0x9f,0xd4,0x44]60// CHECK-ERROR: instruction requires: sve2 or sme61// CHECK-UNKNOWN: 44d49fdf <unknown>62