brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 80031ed Raw
81 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 12fcvtzu  z0.h, p0/m, z0.h13// CHECK-INST: fcvtzu  z0.h, p0/m, z0.h14// CHECK-ENCODING: [0x00,0xa0,0x5b,0x65]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 655ba000 <unknown>17 18fcvtzu  z0.s, p0/m, z0.h19// CHECK-INST: fcvtzu  z0.s, p0/m, z0.h20// CHECK-ENCODING: [0x00,0xa0,0x5d,0x65]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 655da000 <unknown>23 24fcvtzu  z0.s, p0/m, z0.s25// CHECK-INST: fcvtzu  z0.s, p0/m, z0.s26// CHECK-ENCODING: [0x00,0xa0,0x9d,0x65]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 659da000 <unknown>29 30fcvtzu  z0.s, p0/m, z0.d31// CHECK-INST: fcvtzu  z0.s, p0/m, z0.d32// CHECK-ENCODING: [0x00,0xa0,0xd9,0x65]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 65d9a000 <unknown>35 36fcvtzu  z0.d, p0/m, z0.h37// CHECK-INST: fcvtzu  z0.d, p0/m, z0.h38// CHECK-ENCODING: [0x00,0xa0,0x5f,0x65]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 655fa000 <unknown>41 42fcvtzu  z0.d, p0/m, z0.s43// CHECK-INST: fcvtzu  z0.d, p0/m, z0.s44// CHECK-ENCODING: [0x00,0xa0,0xdd,0x65]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 65dda000 <unknown>47 48fcvtzu  z0.d, p0/m, z0.d49// CHECK-INST: fcvtzu  z0.d, p0/m, z0.d50// CHECK-ENCODING: [0x00,0xa0,0xdf,0x65]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 65dfa000 <unknown>53 54 55// --------------------------------------------------------------------------//56// Test compatibility with MOVPRFX instruction.57 58movprfx z5.d, p0/z, z7.d59// CHECK-INST: movprfx	z5.d, p0/z, z7.d60// CHECK-ENCODING: [0xe5,0x20,0xd0,0x04]61// CHECK-ERROR: instruction requires: sve or sme62// CHECK-UNKNOWN: 04d020e5 <unknown>63 64fcvtzu  z5.d, p0/m, z0.d65// CHECK-INST: fcvtzu	z5.d, p0/m, z0.d66// CHECK-ENCODING: [0x05,0xa0,0xdf,0x65]67// CHECK-ERROR: instruction requires: sve or sme68// CHECK-UNKNOWN: 65dfa005 <unknown>69 70movprfx z5, z771// CHECK-INST: movprfx	z5, z772// CHECK-ENCODING: [0xe5,0xbc,0x20,0x04]73// CHECK-ERROR: instruction requires: sve or sme74// CHECK-UNKNOWN: 0420bce5 <unknown>75 76fcvtzu  z5.d, p0/m, z0.d77// CHECK-INST: fcvtzu	z5.d, p0/m, z0.d78// CHECK-ENCODING: [0x05,0xa0,0xdf,0x65]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 65dfa005 <unknown>81