123 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 12fmax z0.h, p0/m, z0.h, #0.00000000000000013// CHECK-INST: fmax z0.h, p0/m, z0.h, #0.014// CHECK-ENCODING: [0x00,0x80,0x5e,0x65]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 655e8000 <unknown>17 18fmax z0.h, p0/m, z0.h, #0.019// CHECK-INST: fmax z0.h, p0/m, z0.h, #0.020// CHECK-ENCODING: [0x00,0x80,0x5e,0x65]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 655e8000 <unknown>23 24fmax z0.s, p0/m, z0.s, #0.025// CHECK-INST: fmax z0.s, p0/m, z0.s, #0.026// CHECK-ENCODING: [0x00,0x80,0x9e,0x65]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 659e8000 <unknown>29 30fmax z31.d, p7/m, z31.d, #1.031// CHECK-INST: fmax z31.d, p7/m, z31.d, #1.032// CHECK-ENCODING: [0x3f,0x9c,0xde,0x65]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 65de9c3f <unknown>35 36fmax z31.h, p7/m, z31.h, #1.037// CHECK-INST: fmax z31.h, p7/m, z31.h, #1.038// CHECK-ENCODING: [0x3f,0x9c,0x5e,0x65]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 655e9c3f <unknown>41 42fmax z31.s, p7/m, z31.s, #1.043// CHECK-INST: fmax z31.s, p7/m, z31.s, #1.044// CHECK-ENCODING: [0x3f,0x9c,0x9e,0x65]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 659e9c3f <unknown>47 48fmax z0.d, p0/m, z0.d, #0.049// CHECK-INST: fmax z0.d, p0/m, z0.d, #0.050// CHECK-ENCODING: [0x00,0x80,0xde,0x65]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 65de8000 <unknown>53 54fmax z0.h, p7/m, z0.h, z31.h55// CHECK-INST: fmax z0.h, p7/m, z0.h, z31.h56// CHECK-ENCODING: [0xe0,0x9f,0x46,0x65]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 65469fe0 <unknown>59 60fmax z0.s, p7/m, z0.s, z31.s61// CHECK-INST: fmax z0.s, p7/m, z0.s, z31.s62// CHECK-ENCODING: [0xe0,0x9f,0x86,0x65]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 65869fe0 <unknown>65 66fmax z0.d, p7/m, z0.d, z31.d67// CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d68// CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 65c69fe0 <unknown>71 72 73// --------------------------------------------------------------------------//74// Test compatibility with MOVPRFX instruction.75 76movprfx z0.d, p0/z, z7.d77// CHECK-INST: movprfx z0.d, p0/z, z7.d78// CHECK-ENCODING: [0xe0,0x20,0xd0,0x04]79// CHECK-ERROR: instruction requires: sve or sme80// CHECK-UNKNOWN: 04d020e0 <unknown>81 82fmax z0.d, p0/m, z0.d, #0.083// CHECK-INST: fmax z0.d, p0/m, z0.d, #0.084// CHECK-ENCODING: [0x00,0x80,0xde,0x65]85// CHECK-ERROR: instruction requires: sve or sme86// CHECK-UNKNOWN: 65de8000 <unknown>87 88movprfx z0, z789// CHECK-INST: movprfx z0, z790// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]91// CHECK-ERROR: instruction requires: sve or sme92// CHECK-UNKNOWN: 0420bce0 <unknown>93 94fmax z0.d, p0/m, z0.d, #0.095// CHECK-INST: fmax z0.d, p0/m, z0.d, #0.096// CHECK-ENCODING: [0x00,0x80,0xde,0x65]97// CHECK-ERROR: instruction requires: sve or sme98// CHECK-UNKNOWN: 65de8000 <unknown>99 100movprfx z0.d, p7/z, z7.d101// CHECK-INST: movprfx z0.d, p7/z, z7.d102// CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 04d03ce0 <unknown>105 106fmax z0.d, p7/m, z0.d, z31.d107// CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d108// CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 65c69fe0 <unknown>111 112movprfx z0, z7113// CHECK-INST: movprfx z0, z7114// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]115// CHECK-ERROR: instruction requires: sve or sme116// CHECK-UNKNOWN: 0420bce0 <unknown>117 118fmax z0.d, p7/m, z0.d, z31.d119// CHECK-INST: fmax z0.d, p7/m, z0.d, z31.d120// CHECK-ENCODING: [0xe0,0x9f,0xc6,0x65]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 65c69fe0 <unknown>123