brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 6d1714a 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 12smax    z0.b, z0.b, #-12813// CHECK-INST: smax	z0.b, z0.b, #-12814// CHECK-ENCODING: [0x00,0xd0,0x28,0x25]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 2528d000 <unknown>17 18smax    z31.b, z31.b, #12719// CHECK-INST: smax	z31.b, z31.b, #12720// CHECK-ENCODING: [0xff,0xcf,0x28,0x25]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 2528cfff <unknown>23 24smax    z0.h, z0.h, #-12825// CHECK-INST: smax	z0.h, z0.h, #-12826// CHECK-ENCODING: [0x00,0xd0,0x68,0x25]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 2568d000 <unknown>29 30smax    z31.h, z31.h, #12731// CHECK-INST: smax	z31.h, z31.h, #12732// CHECK-ENCODING: [0xff,0xcf,0x68,0x25]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 2568cfff <unknown>35 36smax    z0.s, z0.s, #-12837// CHECK-INST: smax	z0.s, z0.s, #-12838// CHECK-ENCODING: [0x00,0xd0,0xa8,0x25]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 25a8d000 <unknown>41 42smax    z31.s, z31.s, #12743// CHECK-INST: smax	z31.s, z31.s, #12744// CHECK-ENCODING: [0xff,0xcf,0xa8,0x25]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 25a8cfff <unknown>47 48smax    z0.d, z0.d, #-12849// CHECK-INST: smax	z0.d, z0.d, #-12850// CHECK-ENCODING: [0x00,0xd0,0xe8,0x25]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 25e8d000 <unknown>53 54smax    z31.d, z31.d, #12755// CHECK-INST: smax	z31.d, z31.d, #12756// CHECK-ENCODING: [0xff,0xcf,0xe8,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25e8cfff <unknown>59 60smax    z31.b, p7/m, z31.b, z31.b61// CHECK-INST: smax    z31.b, p7/m, z31.b, z31.b62// CHECK-ENCODING: [0xff,0x1f,0x08,0x04]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 04081fff <unknown>65 66smax    z31.h, p7/m, z31.h, z31.h67// CHECK-INST: smax    z31.h, p7/m, z31.h, z31.h68// CHECK-ENCODING: [0xff,0x1f,0x48,0x04]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 04481fff <unknown>71 72smax    z31.s, p7/m, z31.s, z31.s73// CHECK-INST: smax    z31.s, p7/m, z31.s, z31.s74// CHECK-ENCODING: [0xff,0x1f,0x88,0x04]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 04881fff <unknown>77 78smax    z31.d, p7/m, z31.d, z31.d79// CHECK-INST: smax    z31.d, p7/m, z31.d, z31.d80// CHECK-ENCODING: [0xff,0x1f,0xc8,0x04]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 04c81fff <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 94smax    z4.d, p7/m, z4.d, z31.d95// CHECK-INST: smax	z4.d, p7/m, z4.d, z31.d96// CHECK-ENCODING: [0xe4,0x1f,0xc8,0x04]97// CHECK-ERROR: instruction requires: sve or sme98// CHECK-UNKNOWN: 04c81fe4 <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 106smax    z4.d, p7/m, z4.d, z31.d107// CHECK-INST: smax	z4.d, p7/m, z4.d, z31.d108// CHECK-ENCODING: [0xe4,0x1f,0xc8,0x04]109// CHECK-ERROR: instruction requires: sve or sme110// CHECK-UNKNOWN: 04c81fe4 <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 118smax    z31.d, z31.d, #127119// CHECK-INST: smax	z31.d, z31.d, #127120// CHECK-ENCODING: [0xff,0xcf,0xe8,0x25]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 25e8cfff <unknown>123