brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · c68623c Raw
53 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 12 13fcvtx    z0.s, p0/m, z0.d14// CHECK-INST: fcvtx    z0.s, p0/m, z0.d15// CHECK-ENCODING: [0x00,0xa0,0x0a,0x65]16// CHECK-ERROR: instruction requires: sve2 or sme17// CHECK-UNKNOWN: 650aa000 <unknown>18 19fcvtx    z30.s, p7/m, z31.d20// CHECK-INST: fcvtx    z30.s, p7/m, z31.d21// CHECK-ENCODING: [0xfe,0xbf,0x0a,0x65]22// CHECK-ERROR: instruction requires: sve2 or sme23// CHECK-UNKNOWN: 650abffe <unknown>24 25 26 27// --------------------------------------------------------------------------//28// Test compatibility with MOVPRFX instruction.29 30movprfx z5.d, p0/z, z7.d31// CHECK-INST: movprfx	z5.d, p0/z, z7.d32// CHECK-ENCODING: [0xe5,0x20,0xd0,0x04]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 04d020e5 <unknown>35 36fcvtx    z5.s, p0/m, z0.d37// CHECK-INST: fcvtx	z5.s, p0/m, z0.d38// CHECK-ENCODING: [0x05,0xa0,0x0a,0x65]39// CHECK-ERROR: instruction requires: sve2 or sme40// CHECK-UNKNOWN: 650aa005 <unknown>41 42movprfx z5, z743// CHECK-INST: movprfx	z5, z744// CHECK-ENCODING: [0xe5,0xbc,0x20,0x04]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 0420bce5 <unknown>47 48fcvtx    z5.s, p0/m, z0.d49// CHECK-INST: fcvtx	z5.s, p0/m, z0.d50// CHECK-ENCODING: [0x05,0xa0,0x0a,0x65]51// CHECK-ERROR: instruction requires: sve2 or sme52// CHECK-UNKNOWN: 650aa005 <unknown>53