brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · ef68d36 Raw
39 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 --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 12ext z31.b, z31.b, z0.b, #013// CHECK-INST: ext	z31.b, z31.b, z0.b, #014// CHECK-ENCODING: [0x1f,0x00,0x20,0x05]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 0520001f <unknown>17 18ext z31.b, z31.b, z0.b, #25519// CHECK-INST: ext	z31.b, z31.b, z0.b, #25520// CHECK-ENCODING: [0x1f,0x1c,0x3f,0x05]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 053f1c1f <unknown>23 24 25// --------------------------------------------------------------------------//26// Test compatibility with MOVPRFX instruction.27 28movprfx z31, z629// CHECK-INST: movprfx	z31, z630// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]31// CHECK-ERROR: instruction requires: sve or sme32// CHECK-UNKNOWN: 0420bcdf <unknown>33 34ext z31.b, z31.b, z0.b, #25535// CHECK-INST: ext	z31.b, z31.b, z0.b, #25536// CHECK-ENCODING: [0x1f,0x1c,0x3f,0x05]37// CHECK-ERROR: instruction requires: sve or sme38// CHECK-UNKNOWN: 053f1c1f <unknown>39