brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · c4588dc Raw
87 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-mop4 < %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=+sme-mop4 < %s \6// RUN:        | llvm-objdump -d --mattr=+sme-mop4 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-mop4 < %s \8// RUN:        | llvm-objdump -d --mattr=-sme-mop4 - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-mop4 < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme-mop4 -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15 16umop4a  za0.s, z0.h, z16.h  // 10000001-00000000-10000000-0000100017// CHECK-INST: umop4a  za0.s, z0.h, z16.h18// CHECK-ENCODING: [0x08,0x80,0x00,0x81]19// CHECK-ERROR: instruction requires: sme-mop420// CHECK-UNKNOWN: 81008008 <unknown>21 22umop4a  za3.s, z12.h, z24.h  // 10000001-00001000-10000001-1000101123// CHECK-INST: umop4a  za3.s, z12.h, z24.h24// CHECK-ENCODING: [0x8b,0x81,0x08,0x81]25// CHECK-ERROR: instruction requires: sme-mop426// CHECK-UNKNOWN: 8108818b <unknown>27 28umop4a  za3.s, z14.h, z30.h  // 10000001-00001110-10000001-1100101129// CHECK-INST: umop4a  za3.s, z14.h, z30.h30// CHECK-ENCODING: [0xcb,0x81,0x0e,0x81]31// CHECK-ERROR: instruction requires: sme-mop432// CHECK-UNKNOWN: 810e81cb <unknown>33 34umop4a  za0.s, z0.h, {z16.h-z17.h}  // 10000001-00010000-10000000-0000100035// CHECK-INST: umop4a  za0.s, z0.h, { z16.h, z17.h }36// CHECK-ENCODING: [0x08,0x80,0x10,0x81]37// CHECK-ERROR: instruction requires: sme-mop438// CHECK-UNKNOWN: 81108008 <unknown>39 40umop4a  za3.s, z12.h, {z24.h-z25.h}  // 10000001-00011000-10000001-1000101141// CHECK-INST: umop4a  za3.s, z12.h, { z24.h, z25.h }42// CHECK-ENCODING: [0x8b,0x81,0x18,0x81]43// CHECK-ERROR: instruction requires: sme-mop444// CHECK-UNKNOWN: 8118818b <unknown>45 46umop4a  za3.s, z14.h, {z30.h-z31.h}  // 10000001-00011110-10000001-1100101147// CHECK-INST: umop4a  za3.s, z14.h, { z30.h, z31.h }48// CHECK-ENCODING: [0xcb,0x81,0x1e,0x81]49// CHECK-ERROR: instruction requires: sme-mop450// CHECK-UNKNOWN: 811e81cb <unknown>51 52umop4a  za0.s, {z0.h-z1.h}, z16.h  // 10000001-00000000-10000010-0000100053// CHECK-INST: umop4a  za0.s, { z0.h, z1.h }, z16.h54// CHECK-ENCODING: [0x08,0x82,0x00,0x81]55// CHECK-ERROR: instruction requires: sme-mop456// CHECK-UNKNOWN: 81008208 <unknown>57 58umop4a  za3.s, {z12.h-z13.h}, z24.h  // 10000001-00001000-10000011-1000101159// CHECK-INST: umop4a  za3.s, { z12.h, z13.h }, z24.h60// CHECK-ENCODING: [0x8b,0x83,0x08,0x81]61// CHECK-ERROR: instruction requires: sme-mop462// CHECK-UNKNOWN: 8108838b <unknown>63 64umop4a  za3.s, {z14.h-z15.h}, z30.h  // 10000001-00001110-10000011-1100101165// CHECK-INST: umop4a  za3.s, { z14.h, z15.h }, z30.h66// CHECK-ENCODING: [0xcb,0x83,0x0e,0x81]67// CHECK-ERROR: instruction requires: sme-mop468// CHECK-UNKNOWN: 810e83cb <unknown>69 70umop4a  za0.s, {z0.h-z1.h}, {z16.h-z17.h}  // 10000001-00010000-10000010-0000100071// CHECK-INST: umop4a  za0.s, { z0.h, z1.h }, { z16.h, z17.h }72// CHECK-ENCODING: [0x08,0x82,0x10,0x81]73// CHECK-ERROR: instruction requires: sme-mop474// CHECK-UNKNOWN: 81108208 <unknown>75 76umop4a  za3.s, {z12.h-z13.h}, {z24.h-z25.h}  // 10000001-00011000-10000011-1000101177// CHECK-INST: umop4a  za3.s, { z12.h, z13.h }, { z24.h, z25.h }78// CHECK-ENCODING: [0x8b,0x83,0x18,0x81]79// CHECK-ERROR: instruction requires: sme-mop480// CHECK-UNKNOWN: 8118838b <unknown>81 82umop4a  za3.s, {z14.h-z15.h}, {z30.h-z31.h}  // 10000001-00011110-10000011-1100101183// CHECK-INST: umop4a  za3.s, { z14.h, z15.h }, { z30.h, z31.h }84// CHECK-ENCODING: [0xcb,0x83,0x1e,0x81]85// CHECK-ERROR: instruction requires: sme-mop486// CHECK-UNKNOWN: 811e83cb <unknown>87