brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · f7f2ebf Raw
111 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 12sqincp  x0, p0.b13// CHECK-INST: sqincp  x0, p0.b14// CHECK-ENCODING: [0x00,0x8c,0x28,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 25288c00 <unknown>17 18sqincp  x0, p0.h19// CHECK-INST: sqincp  x0, p0.h20// CHECK-ENCODING: [0x00,0x8c,0x68,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 25688c00 <unknown>23 24sqincp  x0, p0.s25// CHECK-INST: sqincp  x0, p0.s26// CHECK-ENCODING: [0x00,0x8c,0xa8,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 25a88c00 <unknown>29 30sqincp  x0, p0.d31// CHECK-INST: sqincp  x0, p0.d32// CHECK-ENCODING: [0x00,0x8c,0xe8,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 25e88c00 <unknown>35 36sqincp  xzr, p15.b, wzr37// CHECK-INST: sqincp  xzr, p15.b, wzr38// CHECK-ENCODING: [0xff,0x89,0x28,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 252889ff <unknown>41 42sqincp  xzr, p15.h, wzr43// CHECK-INST: sqincp  xzr, p15.h, wzr44// CHECK-ENCODING: [0xff,0x89,0x68,0x25]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 256889ff <unknown>47 48sqincp  xzr, p15.s, wzr49// CHECK-INST: sqincp  xzr, p15.s, wzr50// CHECK-ENCODING: [0xff,0x89,0xa8,0x25]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 25a889ff <unknown>53 54sqincp  xzr, p15.d, wzr55// CHECK-INST: sqincp  xzr, p15.d, wzr56// CHECK-ENCODING: [0xff,0x89,0xe8,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25e889ff <unknown>59 60sqincp  z0.h, p061// CHECK-INST: sqincp  z0.h, p0.h62// CHECK-ENCODING: [0x00,0x80,0x68,0x25]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 25688000 <unknown>65 66sqincp  z0.h, p0.h67// CHECK-INST: sqincp  z0.h, p0.h68// CHECK-ENCODING: [0x00,0x80,0x68,0x25]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 25688000 <unknown>71 72sqincp  z0.s, p073// CHECK-INST: sqincp  z0.s, p0.s74// CHECK-ENCODING: [0x00,0x80,0xa8,0x25]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 25a88000 <unknown>77 78sqincp  z0.s, p0.s79// CHECK-INST: sqincp  z0.s, p0.s80// CHECK-ENCODING: [0x00,0x80,0xa8,0x25]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 25a88000 <unknown>83 84sqincp  z0.d, p085// CHECK-INST: sqincp  z0.d, p0.d86// CHECK-ENCODING: [0x00,0x80,0xe8,0x25]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 25e88000 <unknown>89 90sqincp  z0.d, p0.d91// CHECK-INST: sqincp  z0.d, p0.d92// CHECK-ENCODING: [0x00,0x80,0xe8,0x25]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 25e88000 <unknown>95 96 97// --------------------------------------------------------------------------//98// Test compatibility with MOVPRFX instruction.99 100movprfx z0, z7101// CHECK-INST: movprfx	z0, z7102// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 0420bce0 <unknown>105 106sqincp  z0.d, p0.d107// CHECK-INST: sqincp	z0.d, p0.d108// CHECK-ENCODING: [0x00,0x80,0xe8,0x25]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 25e88000 <unknown>111