brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · 87350dc Raw
87 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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=+sve < %s \8// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12abs     z0.b, p0/m, z0.b13// CHECK-INST: abs     z0.b, p0/m, z0.b14// CHECK-ENCODING: [0x00,0xa0,0x16,0x04]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 0416a000 <unknown>17 18abs     z0.h, p0/m, z0.h19// CHECK-INST: abs     z0.h, p0/m, z0.h20// CHECK-ENCODING: [0x00,0xa0,0x56,0x04]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 0456a000 <unknown>23 24abs     z0.s, p0/m, z0.s25// CHECK-INST: abs     z0.s, p0/m, z0.s26// CHECK-ENCODING: [0x00,0xa0,0x96,0x04]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 0496a000 <unknown>29 30abs     z0.d, p0/m, z0.d31// CHECK-INST: abs     z0.d, p0/m, z0.d32// CHECK-ENCODING: [0x00,0xa0,0xd6,0x04]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 04d6a000 <unknown>35 36abs     z31.b, p7/m, z31.b37// CHECK-INST: abs     z31.b, p7/m, z31.b38// CHECK-ENCODING: [0xff,0xbf,0x16,0x04]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 0416bfff <unknown>41 42abs     z31.h, p7/m, z31.h43// CHECK-INST: abs     z31.h, p7/m, z31.h44// CHECK-ENCODING: [0xff,0xbf,0x56,0x04]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 0456bfff <unknown>47 48abs     z31.s, p7/m, z31.s49// CHECK-INST: abs     z31.s, p7/m, z31.s50// CHECK-ENCODING: [0xff,0xbf,0x96,0x04]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 0496bfff <unknown>53 54abs     z31.d, p7/m, z31.d55// CHECK-INST: abs     z31.d, p7/m, z31.d56// CHECK-ENCODING: [0xff,0xbf,0xd6,0x04]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 04d6bfff <unknown>59 60 61// --------------------------------------------------------------------------//62// Test compatibility with MOVPRFX instruction.63 64movprfx z4.d, p7/z, z6.d65// CHECK-INST: movprfx	z4.d, p7/z, z6.d66// CHECK-ENCODING: [0xc4,0x3c,0xd0,0x04]67// CHECK-ERROR: instruction requires: sve or sme68// CHECK-UNKNOWN: 04d03cc4 <unknown>69 70abs     z4.d, p7/m, z31.d71// CHECK-INST: abs	z4.d, p7/m, z31.d72// CHECK-ENCODING: [0xe4,0xbf,0xd6,0x04]73// CHECK-ERROR: instruction requires: sve or sme74// CHECK-UNKNOWN: 04d6bfe4 <unknown>75 76movprfx z4, z677// CHECK-INST: movprfx	z4, z678// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 0420bcc4 <unknown>81 82abs     z4.d, p7/m, z31.d83// CHECK-INST: abs	z4.d, p7/m, z31.d84// CHECK-ENCODING: [0xe4,0xbf,0xd6,0x04]85// CHECK-ERROR: instruction requires: sve or sme86// CHECK-UNKNOWN: 04d6bfe4 <unknown>87