brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 3f544fd Raw
122 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+lsfe < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+lsfe < %s \6// RUN:        | llvm-objdump -d --mattr=+lsfe - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+lsfe < %s \8// RUN:        | llvm-objdump -d --mattr=-lsfe - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+lsfe < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+lsfe -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15//------------------------------------------------------------------------------16// STFMAXNM17//------------------------------------------------------------------------------18 19stfmaxnm h0, [x2]20// CHECK-INST: stfmaxnm h0, [x2]21// CHECK-ENCODING: [0x5f,0xe0,0x20,0x7c]22// CHECK-ERROR: instruction requires: lsfe23// CHECK-UNKNOWN: 7c20e05f <unknown>24 25stfmaxnm h2, [sp]26// CHECK-INST: stfmaxnm h2, [sp]27// CHECK-ENCODING: [0xff,0xe3,0x22,0x7c]28// CHECK-ERROR: instruction requires: lsfe29// CHECK-UNKNOWN: 7c22e3ff <unknown>30 31stfmaxnm s0, [x2]32// CHECK-INST: stfmaxnm s0, [x2]33// CHECK-ENCODING: [0x5f,0xe0,0x20,0xbc]34// CHECK-ERROR: instruction requires: lsfe35// CHECK-UNKNOWN: bc20e05f <unknown>36 37stfmaxnm s2, [sp]38// CHECK-INST: stfmaxnm s2, [sp]39// CHECK-ENCODING: [0xff,0xe3,0x22,0xbc]40// CHECK-ERROR: instruction requires: lsfe41// CHECK-UNKNOWN: bc22e3ff <unknown>42 43stfmaxnm d0, [x2]44// CHECK-INST: stfmaxnm d0, [x2]45// CHECK-ENCODING: [0x5f,0xe0,0x20,0xfc]46// CHECK-ERROR: instruction requires: lsfe47// CHECK-UNKNOWN: fc20e05f <unknown>48 49stfmaxnm d2, [sp]50// CHECK-INST: stfmaxnm d2, [sp]51// CHECK-ENCODING: [0xff,0xe3,0x22,0xfc]52// CHECK-ERROR: instruction requires: lsfe53// CHECK-UNKNOWN: fc22e3ff <unknown>54 55// -- stfmaxnml56 57stfmaxnml h0, [x2]58// CHECK-INST: stfmaxnml h0, [x2]59// CHECK-ENCODING: [0x5f,0xe0,0x60,0x7c]60// CHECK-ERROR: instruction requires: lsfe61// CHECK-UNKNOWN:  7c60e05f <unknown>62 63stfmaxnml h2, [sp]64// CHECK-INST: stfmaxnml h2, [sp]65// CHECK-ENCODING: [0xff,0xe3,0x62,0x7c]66// CHECK-ERROR: instruction requires: lsfe67// CHECK-UNKNOWN: 7c62e3ff <unknown>68 69stfmaxnml s0, [x2]70// CHECK-INST: stfmaxnml s0, [x2]71// CHECK-ENCODING: [0x5f,0xe0,0x60,0xbc]72// CHECK-ERROR: instruction requires: lsfe73// CHECK-UNKNOWN: bc60e05f <unknown>74 75stfmaxnml s2, [sp]76// CHECK-INST: stfmaxnml s2, [sp]77// CHECK-ENCODING: [0xff,0xe3,0x62,0xbc]78// CHECK-ERROR: instruction requires: lsfe79// CHECK-UNKNOWN: bc62e3ff <unknown>80 81stfmaxnml d0, [x2]82// CHECK-INST: stfmaxnml d0, [x2]83// CHECK-ENCODING: [0x5f,0xe0,0x60,0xfc]84// CHECK-ERROR: instruction requires: lsfe85// CHECK-UNKNOWN: fc60e05f <unknown>86 87stfmaxnml d2, [sp]88// CHECK-INST: stfmaxnml d2, [sp]89// CHECK-ENCODING: [0xff,0xe3,0x62,0xfc]90// CHECK-ERROR: instruction requires: lsfe91// CHECK-UNKNOWN: fc62e3ff <unknown>92 93//------------------------------------------------------------------------------94// STBFMAXNM95//------------------------------------------------------------------------------96 97stbfmaxnm h0, [x2]98// CHECK-INST: stbfmaxnm h0, [x2]99// CHECK-ENCODING: [0x5f,0xe0,0x20,0x3c]100// CHECK-ERROR: instruction requires: lsfe101// CHECK-UNKNOWN: 3c20e05f <unknown>102 103stbfmaxnm h2, [sp]104// CHECK-INST: stbfmaxnm h2, [sp]105// CHECK-ENCODING: [0xff,0xe3,0x22,0x3c]106// CHECK-ERROR: instruction requires: lsfe107// CHECK-UNKNOWN: 3c22e3ff <unknown>108 109// -- stbfmaxnml110 111stbfmaxnml h0, [x2]112// CHECK-INST: stbfmaxnml h0, [x2]113// CHECK-ENCODING: [0x5f,0xe0,0x60,0x3c]114// CHECK-ERROR: instruction requires: lsfe115// CHECK-UNKNOWN: 3c60e05f <unknown>116 117stbfmaxnml h2, [sp]118// CHECK-INST: stbfmaxnml h2, [sp]119// CHECK-ENCODING: [0xff,0xe3,0x62,0x3c]120// CHECK-ERROR: instruction requires: lsfe121// CHECK-UNKNOWN: 3c62e3ff <unknown>122