70 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 12// Test instruction variants that aren't legal in streaming mode.13 14// --------------------------------------------------------------------------//15// Test addressing modes16 17prfd pldl1keep, p0, [x0, z0.s, uxtw #3]18// CHECK-INST: prfd pldl1keep, p0, [x0, z0.s, uxtw #3]19// CHECK-ENCODING: [0x00,0x60,0x20,0x84]20// CHECK-ERROR: instruction requires: sve21// CHECK-UNKNOWN: 84206000 <unknown>22 23prfd pldl1keep, p0, [x0, z0.s, sxtw #3]24// CHECK-INST: prfd pldl1keep, p0, [x0, z0.s, sxtw #3]25// CHECK-ENCODING: [0x00,0x60,0x60,0x84]26// CHECK-ERROR: instruction requires: sve27// CHECK-UNKNOWN: 84606000 <unknown>28 29prfd pldl1keep, p0, [x0, z0.d, uxtw #3]30// CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, uxtw #3]31// CHECK-ENCODING: [0x00,0x60,0x20,0xc4]32// CHECK-ERROR: instruction requires: sve33// CHECK-UNKNOWN: c4206000 <unknown>34 35prfd pldl1keep, p0, [x0, z0.d, sxtw #3]36// CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, sxtw #3]37// CHECK-ENCODING: [0x00,0x60,0x60,0xc4]38// CHECK-ERROR: instruction requires: sve39// CHECK-UNKNOWN: c4606000 <unknown>40 41prfd pldl1keep, p0, [x0, z0.d, lsl #3]42// CHECK-INST: prfd pldl1keep, p0, [x0, z0.d, lsl #3]43// CHECK-ENCODING: [0x00,0xe0,0x60,0xc4]44// CHECK-ERROR: instruction requires: sve45// CHECK-UNKNOWN: c460e000 <unknown>46 47prfd #15, p7, [z31.s, #0]48// CHECK-INST: prfd #15, p7, [z31.s]49// CHECK-ENCODING: [0xef,0xff,0x80,0x85]50// CHECK-ERROR: instruction requires: sve51// CHECK-UNKNOWN: 8580ffef <unknown>52 53prfd #15, p7, [z31.s, #248]54// CHECK-INST: prfd #15, p7, [z31.s, #248]55// CHECK-ENCODING: [0xef,0xff,0x9f,0x85]56// CHECK-ERROR: instruction requires: sve57// CHECK-UNKNOWN: 859fffef <unknown>58 59prfd #15, p7, [z31.d, #0]60// CHECK-INST: prfd #15, p7, [z31.d]61// CHECK-ENCODING: [0xef,0xff,0x80,0xc5]62// CHECK-ERROR: instruction requires: sve63// CHECK-UNKNOWN: c580ffef <unknown>64 65prfd #15, p7, [z31.d, #248]66// CHECK-INST: prfd #15, p7, [z31.d, #248]67// CHECK-ENCODING: [0xef,0xff,0x9f,0xc5]68// CHECK-ERROR: instruction requires: sve69// CHECK-UNKNOWN: c59fffef <unknown>70