brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 8c2a1ec Raw
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 --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12smin    z0.b, z0.b, #-12813// CHECK-INST: smin	z0.b, z0.b, #-12814// CHECK-ENCODING: [0x00,0xd0,0x2a,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 252ad000 <unknown>17 18smin    z31.b, z31.b, #12719// CHECK-INST: smin	z31.b, z31.b, #12720// CHECK-ENCODING: [0xff,0xcf,0x2a,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 252acfff <unknown>23 24smin    z0.h, z0.h, #-12825// CHECK-INST: smin	z0.h, z0.h, #-12826// CHECK-ENCODING: [0x00,0xd0,0x6a,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 256ad000 <unknown>29 30smin    z31.h, z31.h, #12731// CHECK-INST: smin	z31.h, z31.h, #12732// CHECK-ENCODING: [0xff,0xcf,0x6a,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 256acfff <unknown>35 36smin    z0.s, z0.s, #-12837// CHECK-INST: smin	z0.s, z0.s, #-12838// CHECK-ENCODING: [0x00,0xd0,0xaa,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 25aad000 <unknown>41 42smin    z31.s, z31.s, #12743// CHECK-INST: smin	z31.s, z31.s, #12744// CHECK-ENCODING: [0xff,0xcf,0xaa,0x25]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 25aacfff <unknown>47 48smin    z0.d, z0.d, #-12849// CHECK-INST: smin	z0.d, z0.d, #-12850// CHECK-ENCODING: [0x00,0xd0,0xea,0x25]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 25ead000 <unknown>53 54smin    z31.d, z31.d, #12755// CHECK-INST: smin	z31.d, z31.d, #12756// CHECK-ENCODING: [0xff,0xcf,0xea,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25eacfff <unknown>59 60smin    z31.b, p7/m, z31.b, z31.b61// CHECK-INST: smin	z31.b, p7/m, z31.b, z31.b62// CHECK-ENCODING: [0xff,0x1f,0x0a,0x04]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 040a1fff <unknown>65 66smin    z31.h, p7/m, z31.h, z31.h67// CHECK-INST: smin	z31.h, p7/m, z31.h, z31.h68// CHECK-ENCODING: [0xff,0x1f,0x4a,0x04]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 044a1fff <unknown>71 72smin    z31.s, p7/m, z31.s, z31.s73// CHECK-INST: smin	z31.s, p7/m, z31.s, z31.s74// CHECK-ENCODING: [0xff,0x1f,0x8a,0x04]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 048a1fff <unknown>77 78smin    z31.d, p7/m, z31.d, z31.d79// CHECK-INST: smin	z31.d, p7/m, z31.d, z31.d80// CHECK-ENCODING: [0xff,0x1f,0xca,0x04]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 04ca1fff <unknown>83 84 85// --------------------------------------------------------------------------//86// Test compatibility with MOVPRFX instruction.87 88movprfx z4.d, p7/z, z6.d89// CHECK-INST: movprfx	z4.d, p7/z, z6.d90// CHECK-ENCODING: [0xc4,0x3c,0xd0,0x04]91// CHECK-ERROR: instruction requires: sve or sme92// CHECK-UNKNOWN: 04d03cc4 <unknown>93 94smin    z4.d, p7/m, z4.d, z31.d95// CHECK-INST: smin	z4.d, p7/m, z4.d, z31.d96// CHECK-ENCODING: [0xe4,0x1f,0xca,0x04]97// CHECK-ERROR: instruction requires: sve or sme98// CHECK-UNKNOWN: 04ca1fe4 <unknown>99 100movprfx z4, z6101// CHECK-INST: movprfx	z4, z6102// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]103// CHECK-ERROR: instruction requires: sve or sme104// CHECK-UNKNOWN: 0420bcc4 <unknown>105 106smin    z4.d, p7/m, z4.d, z31.d107// CHECK-INST: smin	z4.d, p7/m, z4.d, z31.d108// CHECK-ENCODING: [0xe4,0x1f,0xca,0x04]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 04ca1fe4 <unknown>111 112movprfx z31, z6113// CHECK-INST: movprfx	z31, z6114// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04]115// CHECK-ERROR: instruction requires: sve or sme116// CHECK-UNKNOWN: 0420bcdf <unknown>117 118smin    z31.d, z31.d, #127119// CHECK-INST: smin	z31.d, z31.d, #127120// CHECK-ENCODING: [0xff,0xcf,0xea,0x25]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 25eacfff <unknown>123