brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 97abc4c Raw
39 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \6// RUN:        | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \8// RUN:        | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \10// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \11// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \12// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST13 14 15str     zt0, [x0]  // 11100001-00111111-10000000-0000000016// CHECK-INST: str     zt0, [x0]17// CHECK-ENCODING: [0x00,0x80,0x3f,0xe1]18// CHECK-ERROR: instruction requires: sme219// CHECK-UNKNOWN: e13f8000 <unknown>20 21str     zt0, [x10]  // 11100001-00111111-10000001-0100000022// CHECK-INST: str     zt0, [x10]23// CHECK-ENCODING: [0x40,0x81,0x3f,0xe1]24// CHECK-ERROR: instruction requires: sme225// CHECK-UNKNOWN: e13f8140 <unknown>26 27str     zt0, [x13]  // 11100001-00111111-10000001-1010000028// CHECK-INST: str     zt0, [x13]29// CHECK-ENCODING: [0xa0,0x81,0x3f,0xe1]30// CHECK-ERROR: instruction requires: sme231// CHECK-UNKNOWN: e13f81a0 <unknown>32 33str     zt0, [sp]  // 11100001-00111111-10000011-1110000034// CHECK-INST: str     zt0, [sp]35// CHECK-ENCODING: [0xe0,0x83,0x3f,0xe1]36// CHECK-ERROR: instruction requires: sme237// CHECK-UNKNOWN: e13f83e0 <unknown>38 39