121 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// STFMINNM17//------------------------------------------------------------------------------18 19stfminnm h0, [x2]20// CHECK-INST: stfminnm h0, [x2]21// CHECK-ENCODING: [0x5f,0xf0,0x20,0x7c]22// CHECK-ERROR: instruction requires: lsfe23// CHECK-UNKNOWN: 7c20f05f <unknown>24 25stfminnm h2, [sp]26// CHECK-INST: stfminnm h2, [sp]27// CHECK-ENCODING: [0xff,0xf3,0x22,0x7c]28// CHECK-ERROR: instruction requires: lsfe29// CHECK-UNKNOWN: 7c22f3ff <unknown>30 31stfminnm s0, [x2]32// CHECK-INST: stfminnm s0, [x2]33// CHECK-ENCODING: [0x5f,0xf0,0x20,0xbc]34// CHECK-ERROR: instruction requires: lsfe35// CHECK-UNKNOWN: bc20f05f <unknown>36 37stfminnm s2, [sp]38// CHECK-INST: stfminnm s2, [sp]39// CHECK-ENCODING: [0xff,0xf3,0x22,0xbc]40// CHECK-ERROR: instruction requires: lsfe41// CHECK-UNKNOWN: bc22f3ff <unknown>42 43stfminnm d0, [x2]44// CHECK-INST: stfminnm d0, [x2]45// CHECK-ENCODING: [0x5f,0xf0,0x20,0xfc]46// CHECK-ERROR: instruction requires: lsfe47// CHECK-UNKNOWN: fc20f05f <unknown>48 49stfminnm d2, [sp]50// CHECK-INST: stfminnm d2, [sp]51// CHECK-ENCODING: [0xff,0xf3,0x22,0xfc]52// CHECK-ERROR: instruction requires: lsfe53// CHECK-UNKNOWN: fc22f3ff <unknown>54 55// -- stfminnml56 57stfminnml h0, [x2]58// CHECK-INST: stfminnml h0, [x2]59// CHECK-ENCODING: [0x5f,0xf0,0x60,0x7c]60// CHECK-ERROR: instruction requires: lsfe61// CHECK-UNKNOWN: 7c60f05f <unknown>62 63stfminnml h2, [sp]64// CHECK-INST: stfminnml h2, [sp]65// CHECK-ENCODING: [0xff,0xf3,0x62,0x7c]66// CHECK-ERROR: instruction requires: lsfe67// CHECK-UNKNOWN: 7c62f3ff <unknown>68 69stfminnml s0, [x2]70// CHECK-INST: stfminnml s0, [x2]71// CHECK-ENCODING: [0x5f,0xf0,0x60,0xbc]72// CHECK-ERROR: instruction requires: lsfe73// CHECK-UNKNOWN: bc60f05f <unknown>74 75stfminnml s2, [sp]76// CHECK-INST: stfminnml s2, [sp]77// CHECK-ENCODING: [0xff,0xf3,0x62,0xbc]78// CHECK-ERROR: instruction requires: lsfe79// CHECK-UNKNOWN: bc62f3ff <unknown>80 81stfminnml d0, [x2]82// CHECK-INST: stfminnml d0, [x2]83// CHECK-ENCODING: [0x5f,0xf0,0x60,0xfc]84// CHECK-ERROR: instruction requires: lsfe85// CHECK-UNKNOWN: fc60f05f <unknown>86 87stfminnml d2, [sp]88// CHECK-INST: stfminnml d2, [sp]89// CHECK-ENCODING: [0xff,0xf3,0x62,0xfc]90// CHECK-ERROR: instruction requires: lsfe91// CHECK-UNKNOWN: fc62f3ff <unknown>92 93//------------------------------------------------------------------------------94// STBFMINNM95//------------------------------------------------------------------------------96 97stbfminnm h0, [x2]98// CHECK-INST: stbfminnm h0, [x2]99// CHECK-ENCODING: [0x5f,0xf0,0x20,0x3c]100// CHECK-ERROR: instruction requires: lsfe101// CHECK-UNKNOWN: 3c20f05f <unknown>102 103stbfminnm h2, [sp]104// CHECK-INST: stbfminnm h2, [sp]105// CHECK-ENCODING: [0xff,0xf3,0x22,0x3c]106// CHECK-ERROR: instruction requires: lsfe107// CHECK-UNKNOWN: 3c22f3ff <unknown>108 109// -- stbfminnml110 111stbfminnml h0, [x2]112// CHECK-INST: stbfminnml h0, [x2]113// CHECK-ENCODING: [0x5f,0xf0,0x60,0x3c]114// CHECK-ERROR: instruction requires: lsfe115// CHECK-UNKNOWN: 3c60f05f <unknown>116 117stbfminnml h2, [sp]118// CHECK-INST: stbfminnml h2, [sp]119// CHECK-ENCODING: [0xff,0xf3,0x62,0x3c]120// CHECK-ERROR: instruction requires: lsfe121// CHECK-UNKNOWN: 3c62f3ff <unknown>