brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · 03557f0 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 12incp    x0, p0.b13// CHECK-INST: incp    x0, p0.b14// CHECK-ENCODING: [0x00,0x88,0x2c,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 252c8800 <unknown>17 18incp    x0, p0.h19// CHECK-INST: incp    x0, p0.h20// CHECK-ENCODING: [0x00,0x88,0x6c,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 256c8800 <unknown>23 24incp    x0, p0.s25// CHECK-INST: incp    x0, p0.s26// CHECK-ENCODING: [0x00,0x88,0xac,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 25ac8800 <unknown>29 30incp    x0, p0.d31// CHECK-INST: incp    x0, p0.d32// CHECK-ENCODING: [0x00,0x88,0xec,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 25ec8800 <unknown>35 36incp    xzr, p15.b37// CHECK-INST: incp    xzr, p15.b38// CHECK-ENCODING: [0xff,0x89,0x2c,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 252c89ff <unknown>41 42incp    xzr, p15.h43// CHECK-INST: incp    xzr, p15.h44// CHECK-ENCODING: [0xff,0x89,0x6c,0x25]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 256c89ff <unknown>47 48incp    xzr, p15.s49// CHECK-INST: incp    xzr, p15.s50// CHECK-ENCODING: [0xff,0x89,0xac,0x25]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 25ac89ff <unknown>53 54incp    xzr, p15.d55// CHECK-INST: incp    xzr, p15.d56// CHECK-ENCODING: [0xff,0x89,0xec,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25ec89ff <unknown>59 60incp    z31.h, p1561// CHECK-INST: incp    z31.h, p15.h62// CHECK-ENCODING: [0xff,0x81,0x6c,0x25]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 256c81ff <unknown>65 66incp    z31.h, p15.h67// CHECK-INST: incp    z31.h, p15.h68// CHECK-ENCODING: [0xff,0x81,0x6c,0x25]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 256c81ff <unknown>71 72incp    z31.s, p1573// CHECK-INST: incp    z31.s, p15.s74// CHECK-ENCODING: [0xff,0x81,0xac,0x25]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 25ac81ff <unknown>77 78incp    z31.s, p15.s79// CHECK-INST: incp    z31.s, p15.s80// CHECK-ENCODING: [0xff,0x81,0xac,0x25]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 25ac81ff <unknown>83 84incp    z31.d, p1585// CHECK-INST: incp    z31.d, p15.d86// CHECK-ENCODING: [0xff,0x81,0xec,0x25]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 25ec81ff <unknown>89 90incp    z31.d, p15.d91// CHECK-INST: incp    z31.d, p15.d92// CHECK-ENCODING: [0xff,0x81,0xec,0x25]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 25ec81ff <unknown>95 96 97// --------------------------------------------------------------------------//98// Test compatibility with MOVPRFX instruction.99 100movprfx z31, z6101// CHECK-INST: movprfx	z31, z6102// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 0420bcdf <unknown>105 106incp    z31.d, p15.d107// CHECK-INST: incp	z31.d, p15.d108// CHECK-ENCODING: [0xff,0x81,0xec,0x25]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 25ec81ff <unknown>111