brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.6 KiB · d2d6971 Raw
129 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 12fmaxnm  z0.h, p0/m, z0.h, #0.00000000000000013// CHECK-INST: fmaxnm	z0.h, p0/m, z0.h, #0.014// CHECK-ENCODING: [0x00,0x80,0x5c,0x65]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 655c8000 <unknown>17 18fmaxnm  z0.h, p0/m, z0.h, #0.019// CHECK-INST: fmaxnm	z0.h, p0/m, z0.h, #0.020// CHECK-ENCODING: [0x00,0x80,0x5c,0x65]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 655c8000 <unknown>23 24fmaxnm  z0.s, p0/m, z0.s, #0.025// CHECK-INST: fmaxnm	z0.s, p0/m, z0.s, #0.026// CHECK-ENCODING: [0x00,0x80,0x9c,0x65]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 659c8000 <unknown>29 30fmaxnm  z0.d, p0/m, z0.d, #0.031// CHECK-INST: fmaxnm	z0.d, p0/m, z0.d, #0.032// CHECK-ENCODING: [0x00,0x80,0xdc,0x65]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 65dc8000 <unknown>35 36fmaxnm  z31.h, p7/m, z31.h, #1.00000000000000037// CHECK-INST: fmaxnm	z31.h, p7/m, z31.h, #1.038// CHECK-ENCODING: [0x3f,0x9c,0x5c,0x65]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 655c9c3f <unknown>41 42fmaxnm  z31.h, p7/m, z31.h, #1.043// CHECK-INST: fmaxnm	z31.h, p7/m, z31.h, #1.044// CHECK-ENCODING: [0x3f,0x9c,0x5c,0x65]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 655c9c3f <unknown>47 48fmaxnm  z31.s, p7/m, z31.s, #1.049// CHECK-INST: fmaxnm	z31.s, p7/m, z31.s, #1.050// CHECK-ENCODING: [0x3f,0x9c,0x9c,0x65]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 659c9c3f <unknown>53 54fmaxnm  z31.d, p7/m, z31.d, #1.055// CHECK-INST: fmaxnm	z31.d, p7/m, z31.d, #1.056// CHECK-ENCODING: [0x3f,0x9c,0xdc,0x65]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 65dc9c3f <unknown>59 60fmaxnm  z0.h, p7/m, z0.h, z31.h61// CHECK-INST: fmaxnm	z0.h, p7/m, z0.h, z31.h62// CHECK-ENCODING: [0xe0,0x9f,0x44,0x65]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 65449fe0 <unknown>65 66fmaxnm  z0.s, p7/m, z0.s, z31.s67// CHECK-INST: fmaxnm	z0.s, p7/m, z0.s, z31.s68// CHECK-ENCODING: [0xe0,0x9f,0x84,0x65]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 65849fe0 <unknown>71 72fmaxnm  z0.d, p7/m, z0.d, z31.d73// CHECK-INST: fmaxnm	z0.d, p7/m, z0.d, z31.d74// CHECK-ENCODING: [0xe0,0x9f,0xc4,0x65]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 65c49fe0 <unknown>77 78 79// --------------------------------------------------------------------------//80// Test compatibility with MOVPRFX instruction.81 82movprfx z31.d, p7/z, z6.d83// CHECK-INST: movprfx	z31.d, p7/z, z6.d84// CHECK-ENCODING: [0xdf,0x3c,0xd0,0x04]85// CHECK-ERROR: instruction requires: sve or sme86// CHECK-UNKNOWN: 04d03cdf <unknown>87 88fmaxnm  z31.d, p7/m, z31.d, #1.089// CHECK-INST: fmaxnm	z31.d, p7/m, z31.d, #1.090// CHECK-ENCODING: [0x3f,0x9c,0xdc,0x65]91// CHECK-ERROR: instruction requires: sve or sme92// CHECK-UNKNOWN: 65dc9c3f <unknown>93 94movprfx z31, z695// CHECK-INST: movprfx	z31, z696// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]97// CHECK-ERROR: instruction requires: sve or sme98// CHECK-UNKNOWN: 0420bcdf <unknown>99 100fmaxnm  z31.d, p7/m, z31.d, #1.0101// CHECK-INST: fmaxnm	z31.d, p7/m, z31.d, #1.0102// CHECK-ENCODING: [0x3f,0x9c,0xdc,0x65]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 65dc9c3f <unknown>105 106movprfx z0.d, p7/z, z7.d107// CHECK-INST: movprfx	z0.d, p7/z, z7.d108// CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 04d03ce0 <unknown>111 112fmaxnm  z0.d, p7/m, z0.d, z31.d113// CHECK-INST: fmaxnm	z0.d, p7/m, z0.d, z31.d114// CHECK-ENCODING: [0xe0,0x9f,0xc4,0x65]115// CHECK-ERROR: instruction requires: sve or sme116// CHECK-UNKNOWN: 65c49fe0 <unknown>117 118movprfx z0, z7119// CHECK-INST: movprfx	z0, z7120// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 0420bce0 <unknown>123 124fmaxnm  z0.d, p7/m, z0.d, z31.d125// CHECK-INST: fmaxnm	z0.d, p7/m, z0.d, z31.d126// CHECK-ENCODING: [0xe0,0x9f,0xc4,0x65]127// CHECK-ERROR: instruction requires: sve or sme128// CHECK-UNKNOWN: 65c49fe0 <unknown>129