brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 875a65d Raw
71 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 12sel     p0.b, p0, p0.b, p0.b13// CHECK-INST: mov     p0.b, p0/m, p0.b14// CHECK-ENCODING: [0x10,0x42,0x00,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 25004210 <unknown>17 18sel     p15.b, p15, p15.b, p15.b19// CHECK-INST: mov     p15.b, p15/m, p15.b20// CHECK-ENCODING: [0xff,0x7f,0x0f,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 250f7fff <unknown>23 24sel     z31.b, p15, z31.b, z31.b25// CHECK-INST: mov     z31.b, p15/m, z31.b26// CHECK-ENCODING: [0xff,0xff,0x3f,0x05]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 053fffff <unknown>29 30sel     z31.h, p15, z31.h, z31.h31// CHECK-INST: mov     z31.h, p15/m, z31.h32// CHECK-ENCODING: [0xff,0xff,0x7f,0x05]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 057fffff <unknown>35 36sel     z31.s, p15, z31.s, z31.s37// CHECK-INST: mov     z31.s, p15/m, z31.s38// CHECK-ENCODING: [0xff,0xff,0xbf,0x05]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 05bfffff <unknown>41 42sel     z31.d, p15, z31.d, z31.d43// CHECK-INST: mov     z31.d, p15/m, z31.d44// CHECK-ENCODING: [0xff,0xff,0xff,0x05]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 05ffffff <unknown>47 48sel     z23.s, p11, z13.s, z8.s49// CHECK-INST: sel     z23.s, p11, z13.s, z8.s50// CHECK-ENCODING: [0xb7,0xed,0xa8,0x05]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 05a8edb7 <unknown>53 54sel     z23.d, p11, z13.d, z8.d55// CHECK-INST: sel     z23.d, p11, z13.d, z8.d56// CHECK-ENCODING: [0xb7,0xed,0xe8,0x05]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 05e8edb7 <unknown>59 60sel     z23.h, p11, z13.h, z8.h61// CHECK-INST: sel     z23.h, p11, z13.h, z8.h62// CHECK-ENCODING: [0xb7,0xed,0x68,0x05]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 0568edb7 <unknown>65 66sel     z23.b, p11, z13.b, z8.b67// CHECK-INST: sel     z23.b, p11, z13.b, z8.b68// CHECK-ENCODING: [0xb7,0xed,0x28,0x05]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 0528edb7 <unknown>71