brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · c900535 Raw
87 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 -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12fmla z0.h, p7/m, z1.h, z31.h13// CHECK-INST: fmla	z0.h, p7/m, z1.h, z31.h14// CHECK-ENCODING: [0x20,0x1c,0x7f,0x65]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 657f1c20 <unknown>17 18fmla z0.s, p7/m, z1.s, z31.s19// CHECK-INST: fmla	z0.s, p7/m, z1.s, z31.s20// CHECK-ENCODING: [0x20,0x1c,0xbf,0x65]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 65bf1c20 <unknown>23 24fmla z0.d, p7/m, z1.d, z31.d25// CHECK-INST: fmla	z0.d, p7/m, z1.d, z31.d26// CHECK-ENCODING: [0x20,0x1c,0xff,0x65]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 65ff1c20 <unknown>29 30fmla z0.h, z1.h, z7.h[7]31// CHECK-INST: fmla	z0.h, z1.h, z7.h[7]32// CHECK-ENCODING: [0x20,0x00,0x7f,0x64]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 647f0020 <unknown>35 36fmla z0.s, z1.s, z7.s[3]37// CHECK-INST: fmla	z0.s, z1.s, z7.s[3]38// CHECK-ENCODING: [0x20,0x00,0xbf,0x64]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 64bf0020 <unknown>41 42fmla z0.d, z1.d, z7.d[1]43// CHECK-INST: fmla	z0.d, z1.d, z7.d[1]44// CHECK-ENCODING: [0x20,0x00,0xf7,0x64]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 64f70020 <unknown>47 48 49// --------------------------------------------------------------------------//50// Test compatibility with MOVPRFX instruction.51 52movprfx z0.d, p7/z, z7.d53// CHECK-INST: movprfx	z0.d, p7/z, z7.d54// CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04]55// CHECK-ERROR: instruction requires: sve or sme56// CHECK-UNKNOWN: 04d03ce0 <unknown>57 58fmla z0.d, p7/m, z1.d, z31.d59// CHECK-INST: fmla	z0.d, p7/m, z1.d, z31.d60// CHECK-ENCODING: [0x20,0x1c,0xff,0x65]61// CHECK-ERROR: instruction requires: sve or sme62// CHECK-UNKNOWN: 65ff1c20 <unknown>63 64movprfx z0, z765// CHECK-INST: movprfx	z0, z766// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]67// CHECK-ERROR: instruction requires: sve or sme68// CHECK-UNKNOWN: 0420bce0 <unknown>69 70fmla z0.d, p7/m, z1.d, z31.d71// CHECK-INST: fmla	z0.d, p7/m, z1.d, z31.d72// CHECK-ENCODING: [0x20,0x1c,0xff,0x65]73// CHECK-ERROR: instruction requires: sve or sme74// CHECK-UNKNOWN: 65ff1c20 <unknown>75 76movprfx z0, z777// CHECK-INST: movprfx	z0, z778// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 0420bce0 <unknown>81 82fmla z0.d, z1.d, z7.d[1]83// CHECK-INST: fmla	z0.d, z1.d, z7.d[1]84// CHECK-ENCODING: [0x20,0x00,0xf7,0x64]85// CHECK-ERROR: instruction requires: sve or sme86// CHECK-UNKNOWN: 64f70020 <unknown>87