brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · ba14842 Raw
47 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \8// RUN:        | llvm-objdump --no-print-imm-hex -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \10// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12sqshrunb     z0.b, z0.h, #113// CHECK-INST: sqshrunb	z0.b, z0.h, #114// CHECK-ENCODING: [0x00,0x00,0x2f,0x45]15// CHECK-ERROR: instruction requires: sve2 or sme16// CHECK-UNKNOWN: 452f0000 <unknown>17 18sqshrunb     z31.b, z31.h, #819// CHECK-INST: sqshrunb	z31.b, z31.h, #820// CHECK-ENCODING: [0xff,0x03,0x28,0x45]21// CHECK-ERROR: instruction requires: sve2 or sme22// CHECK-UNKNOWN: 452803ff <unknown>23 24sqshrunb     z0.h, z0.s, #125// CHECK-INST: sqshrunb	z0.h, z0.s, #126// CHECK-ENCODING: [0x00,0x00,0x3f,0x45]27// CHECK-ERROR: instruction requires: sve2 or sme28// CHECK-UNKNOWN: 453f0000 <unknown>29 30sqshrunb     z31.h, z31.s, #1631// CHECK-INST: sqshrunb	z31.h, z31.s, #1632// CHECK-ENCODING: [0xff,0x03,0x30,0x45]33// CHECK-ERROR: instruction requires: sve2 or sme34// CHECK-UNKNOWN: 453003ff <unknown>35 36sqshrunb     z0.s, z0.d, #137// CHECK-INST: sqshrunb	z0.s, z0.d, #138// CHECK-ENCODING: [0x00,0x00,0x7f,0x45]39// CHECK-ERROR: instruction requires: sve2 or sme40// CHECK-UNKNOWN: 457f0000 <unknown>41 42sqshrunb     z31.s, z31.d, #3243// CHECK-INST: sqshrunb	z31.s, z31.d, #3244// CHECK-ENCODING: [0xff,0x03,0x60,0x45]45// CHECK-ERROR: instruction requires: sve2 or sme46// CHECK-UNKNOWN: 456003ff <unknown>47