83 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+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 12stnt1w z0.s, p0, [z1.s]13// CHECK-INST: stnt1w { z0.s }, p0, [z1.s]14// CHECK-ENCODING: [0x20,0x20,0x5f,0xe5]15// CHECK-ERROR: instruction requires: sve216// CHECK-UNKNOWN: e55f2020 <unknown>17 18stnt1w z31.s, p7, [z31.s, xzr]19// CHECK-INST: stnt1w { z31.s }, p7, [z31.s]20// CHECK-ENCODING: [0xff,0x3f,0x5f,0xe5]21// CHECK-ERROR: instruction requires: sve222// CHECK-UNKNOWN: e55f3fff <unknown>23 24stnt1w z31.s, p7, [z31.s, x0]25// CHECK-INST: stnt1w { z31.s }, p7, [z31.s, x0]26// CHECK-ENCODING: [0xff,0x3f,0x40,0xe5]27// CHECK-ERROR: instruction requires: sve228// CHECK-UNKNOWN: e5403fff <unknown>29 30stnt1w z0.d, p0, [z1.d]31// CHECK-INST: stnt1w { z0.d }, p0, [z1.d]32// CHECK-ENCODING: [0x20,0x20,0x1f,0xe5]33// CHECK-ERROR: instruction requires: sve234// CHECK-UNKNOWN: e51f2020 <unknown>35 36stnt1w z31.d, p7, [z31.d, xzr]37// CHECK-INST: stnt1w { z31.d }, p7, [z31.d]38// CHECK-ENCODING: [0xff,0x3f,0x1f,0xe5]39// CHECK-ERROR: instruction requires: sve240// CHECK-UNKNOWN: e51f3fff <unknown>41 42stnt1w z31.d, p7, [z31.d, x0]43// CHECK-INST: stnt1w { z31.d }, p7, [z31.d, x0]44// CHECK-ENCODING: [0xff,0x3f,0x00,0xe5]45// CHECK-ERROR: instruction requires: sve246// CHECK-UNKNOWN: e5003fff <unknown>47 48stnt1w { z0.s }, p0, [z1.s]49// CHECK-INST: stnt1w { z0.s }, p0, [z1.s]50// CHECK-ENCODING: [0x20,0x20,0x5f,0xe5]51// CHECK-ERROR: instruction requires: sve252// CHECK-UNKNOWN: e55f2020 <unknown>53 54stnt1w { z31.s }, p7, [z31.s, xzr]55// CHECK-INST: stnt1w { z31.s }, p7, [z31.s]56// CHECK-ENCODING: [0xff,0x3f,0x5f,0xe5]57// CHECK-ERROR: instruction requires: sve258// CHECK-UNKNOWN: e55f3fff <unknown>59 60stnt1w { z31.s }, p7, [z31.s, x0]61// CHECK-INST: stnt1w { z31.s }, p7, [z31.s, x0]62// CHECK-ENCODING: [0xff,0x3f,0x40,0xe5]63// CHECK-ERROR: instruction requires: sve264// CHECK-UNKNOWN: e5403fff <unknown>65 66stnt1w { z0.d }, p0, [z1.d]67// CHECK-INST: stnt1w { z0.d }, p0, [z1.d]68// CHECK-ENCODING: [0x20,0x20,0x1f,0xe5]69// CHECK-ERROR: instruction requires: sve270// CHECK-UNKNOWN: e51f2020 <unknown>71 72stnt1w { z31.d }, p7, [z31.d, xzr]73// CHECK-INST: stnt1w { z31.d }, p7, [z31.d]74// CHECK-ENCODING: [0xff,0x3f,0x1f,0xe5]75// CHECK-ERROR: instruction requires: sve276// CHECK-UNKNOWN: e51f3fff <unknown>77 78stnt1w { z31.d }, p7, [z31.d, x0]79// CHECK-INST: stnt1w { z31.d }, p7, [z31.d, x0]80// CHECK-ENCODING: [0xff,0x3f,0x00,0xe5]81// CHECK-ERROR: instruction requires: sve282// CHECK-UNKNOWN: e5003fff <unknown>83