brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.5 KiB · 39d2a16 Raw
149 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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 --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12ldff1h  { z31.h }, p7/z, [sp]13// CHECK-INST: ldff1h  { z31.h }, p7/z, [sp]14// CHECK-ENCODING: [0xff,0x7f,0xbf,0xa4]15// CHECK-ERROR: instruction requires: sve16// CHECK-UNKNOWN: a4bf7fff <unknown>17 18ldff1h  { z31.s }, p7/z, [sp]19// CHECK-INST: ldff1h  { z31.s }, p7/z, [sp]20// CHECK-ENCODING: [0xff,0x7f,0xdf,0xa4]21// CHECK-ERROR: instruction requires: sve22// CHECK-UNKNOWN: a4df7fff <unknown>23 24ldff1h  { z31.d }, p7/z, [sp]25// CHECK-INST: ldff1h  { z31.d }, p7/z, [sp]26// CHECK-ENCODING: [0xff,0x7f,0xff,0xa4]27// CHECK-ERROR: instruction requires: sve28// CHECK-UNKNOWN: a4ff7fff <unknown>29 30ldff1h  { z31.h }, p7/z, [sp, xzr, lsl #1]31// CHECK-INST: ldff1h  { z31.h }, p7/z, [sp]32// CHECK-ENCODING: [0xff,0x7f,0xbf,0xa4]33// CHECK-ERROR: instruction requires: sve34// CHECK-UNKNOWN: a4bf7fff <unknown>35 36ldff1h  { z31.s }, p7/z, [sp, xzr, lsl #1]37// CHECK-INST: ldff1h  { z31.s }, p7/z, [sp]38// CHECK-ENCODING: [0xff,0x7f,0xdf,0xa4]39// CHECK-ERROR: instruction requires: sve40// CHECK-UNKNOWN: a4df7fff <unknown>41 42ldff1h  { z31.d }, p7/z, [sp, xzr, lsl #1]43// CHECK-INST: ldff1h  { z31.d }, p7/z, [sp]44// CHECK-ENCODING: [0xff,0x7f,0xff,0xa4]45// CHECK-ERROR: instruction requires: sve46// CHECK-UNKNOWN: a4ff7fff <unknown>47 48ldff1h  { z0.h }, p0/z, [x0, x0, lsl #1]49// CHECK-INST: ldff1h  { z0.h }, p0/z, [x0, x0, lsl #1]50// CHECK-ENCODING: [0x00,0x60,0xa0,0xa4]51// CHECK-ERROR: instruction requires: sve52// CHECK-UNKNOWN: a4a06000 <unknown>53 54ldff1h  { z0.s }, p0/z, [x0, x0, lsl #1]55// CHECK-INST: ldff1h  { z0.s }, p0/z, [x0, x0, lsl #1]56// CHECK-ENCODING: [0x00,0x60,0xc0,0xa4]57// CHECK-ERROR: instruction requires: sve58// CHECK-UNKNOWN: a4c06000 <unknown>59 60ldff1h  { z0.d }, p0/z, [x0, x0, lsl #1]61// CHECK-INST: ldff1h  { z0.d }, p0/z, [x0, x0, lsl #1]62// CHECK-ENCODING: [0x00,0x60,0xe0,0xa4]63// CHECK-ERROR: instruction requires: sve64// CHECK-UNKNOWN: a4e06000 <unknown>65 66ldff1h    { z0.s }, p0/z, [x0, z0.s, uxtw]67// CHECK-INST: ldff1h    { z0.s }, p0/z, [x0, z0.s, uxtw]68// CHECK-ENCODING: [0x00,0x60,0x80,0x84]69// CHECK-ERROR: instruction requires: sve70// CHECK-UNKNOWN: 84806000 <unknown>71 72ldff1h    { z0.s }, p0/z, [x0, z0.s, sxtw]73// CHECK-INST: ldff1h    { z0.s }, p0/z, [x0, z0.s, sxtw]74// CHECK-ENCODING: [0x00,0x60,0xc0,0x84]75// CHECK-ERROR: instruction requires: sve76// CHECK-UNKNOWN: 84c06000 <unknown>77 78ldff1h  { z31.s }, p7/z, [sp, z31.s, uxtw #1]79// CHECK-INST: ldff1h  { z31.s }, p7/z, [sp, z31.s, uxtw #1]80// CHECK-ENCODING: [0xff,0x7f,0xbf,0x84]81// CHECK-ERROR: instruction requires: sve82// CHECK-UNKNOWN: 84bf7fff <unknown>83 84ldff1h  { z31.s }, p7/z, [sp, z31.s, sxtw #1]85// CHECK-INST: ldff1h  { z31.s }, p7/z, [sp, z31.s, sxtw #1]86// CHECK-ENCODING: [0xff,0x7f,0xff,0x84]87// CHECK-ERROR: instruction requires: sve88// CHECK-UNKNOWN: 84ff7fff <unknown>89 90ldff1h  { z31.d }, p7/z, [sp, z31.d]91// CHECK-INST: ldff1h  { z31.d }, p7/z, [sp, z31.d]92// CHECK-ENCODING: [0xff,0xff,0xdf,0xc4]93// CHECK-ERROR: instruction requires: sve94// CHECK-UNKNOWN: c4dfffff <unknown>95 96ldff1h  { z23.d }, p3/z, [x13, z8.d, lsl #1]97// CHECK-INST: ldff1h  { z23.d }, p3/z, [x13, z8.d, lsl #1]98// CHECK-ENCODING: [0xb7,0xed,0xe8,0xc4]99// CHECK-ERROR: instruction requires: sve100// CHECK-UNKNOWN: c4e8edb7 <unknown>101 102ldff1h  { z21.d }, p5/z, [x10, z21.d, uxtw]103// CHECK-INST: ldff1h  { z21.d }, p5/z, [x10, z21.d, uxtw]104// CHECK-ENCODING: [0x55,0x75,0x95,0xc4]105// CHECK-ERROR: instruction requires: sve106// CHECK-UNKNOWN: c4957555 <unknown>107 108ldff1h  { z21.d }, p5/z, [x10, z21.d, sxtw]109// CHECK-INST: ldff1h  { z21.d }, p5/z, [x10, z21.d, sxtw]110// CHECK-ENCODING: [0x55,0x75,0xd5,0xc4]111// CHECK-ERROR: instruction requires: sve112// CHECK-UNKNOWN: c4d57555 <unknown>113 114ldff1h  { z0.d }, p0/z, [x0, z0.d, uxtw #1]115// CHECK-INST: ldff1h  { z0.d }, p0/z, [x0, z0.d, uxtw #1]116// CHECK-ENCODING: [0x00,0x60,0xa0,0xc4]117// CHECK-ERROR: instruction requires: sve118// CHECK-UNKNOWN: c4a06000 <unknown>119 120ldff1h  { z0.d }, p0/z, [x0, z0.d, sxtw #1]121// CHECK-INST: ldff1h  { z0.d }, p0/z, [x0, z0.d, sxtw #1]122// CHECK-ENCODING: [0x00,0x60,0xe0,0xc4]123// CHECK-ERROR: instruction requires: sve124// CHECK-UNKNOWN: c4e06000 <unknown>125 126ldff1h  { z31.s }, p7/z, [z31.s, #62]127// CHECK-INST: ldff1h  { z31.s }, p7/z, [z31.s, #62]128// CHECK-ENCODING: [0xff,0xff,0xbf,0x84]129// CHECK-ERROR: instruction requires: sve130// CHECK-UNKNOWN: 84bfffff <unknown>131 132ldff1h  { z0.s }, p0/z, [z0.s]133// CHECK-INST: ldff1h  { z0.s }, p0/z, [z0.s]134// CHECK-ENCODING: [0x00,0xe0,0xa0,0x84]135// CHECK-ERROR: instruction requires: sve136// CHECK-UNKNOWN: 84a0e000 <unknown>137 138ldff1h  { z31.d }, p7/z, [z31.d, #62]139// CHECK-INST: ldff1h  { z31.d }, p7/z, [z31.d, #62]140// CHECK-ENCODING: [0xff,0xff,0xbf,0xc4]141// CHECK-ERROR: instruction requires: sve142// CHECK-UNKNOWN: c4bfffff <unknown>143 144ldff1h  { z0.d }, p0/z, [z0.d]145// CHECK-INST: ldff1h  { z0.d }, p0/z, [z0.d]146// CHECK-ENCODING: [0x00,0xe0,0xa0,0xc4]147// CHECK-ERROR: instruction requires: sve148// CHECK-UNKNOWN: c4a0e000 <unknown>149