brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · f02fbbc 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 12ucvtf   z0.h, p0/m, z0.h13// CHECK-INST: ucvtf   z0.h, p0/m, z0.h14// CHECK-ENCODING: [0x00,0xa0,0x53,0x65]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 6553a000 <unknown>17 18ucvtf   z0.h, p0/m, z0.s19// CHECK-INST: ucvtf   z0.h, p0/m, z0.s20// CHECK-ENCODING: [0x00,0xa0,0x55,0x65]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 6555a000 <unknown>23 24ucvtf   z0.h, p0/m, z0.d25// CHECK-INST: ucvtf   z0.h, p0/m, z0.d26// CHECK-ENCODING: [0x00,0xa0,0x57,0x65]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 6557a000 <unknown>29 30ucvtf   z0.s, p0/m, z0.s31// CHECK-INST: ucvtf   z0.s, p0/m, z0.s32// CHECK-ENCODING: [0x00,0xa0,0x95,0x65]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 6595a000 <unknown>35 36ucvtf   z0.s, p0/m, z0.d37// CHECK-INST: ucvtf   z0.s, p0/m, z0.d38// CHECK-ENCODING: [0x00,0xa0,0xd5,0x65]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 65d5a000 <unknown>41 42ucvtf   z0.d, p0/m, z0.s43// CHECK-INST: ucvtf   z0.d, p0/m, z0.s44// CHECK-ENCODING: [0x00,0xa0,0xd1,0x65]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 65d1a000 <unknown>47 48ucvtf   z0.d, p0/m, z0.d49// CHECK-INST: ucvtf   z0.d, p0/m, z0.d50// CHECK-ENCODING: [0x00,0xa0,0xd7,0x65]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 65d7a000 <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 64ucvtf   z5.d, p0/m, z0.d65// CHECK-INST: ucvtf	z5.d, p0/m, z0.d66// CHECK-ENCODING: [0x05,0xa0,0xd7,0x65]67// CHECK-ERROR: instruction requires: sve or sme68// CHECK-UNKNOWN: 65d7a005 <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 76ucvtf   z5.d, p0/m, z0.d77// CHECK-INST: ucvtf	z5.d, p0/m, z0.d78// CHECK-ENCODING: [0x05,0xa0,0xd7,0x65]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 65d7a005 <unknown>81