brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 6e1d6b8 Raw
44 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+fullfp16 < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=-neon < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+fullfp16 < %s \6// RUN:        | llvm-objdump --mattr=+fullfp16 -d - | FileCheck %s --check-prefix=CHECK-INST7// Disassemble encoding and check the re-encoding (-show-encoding) matches.8// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+fullfp16 < %s \9// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \10// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme,+fullfp16 -disassemble -show-encoding \11// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST12 13// Scalar FP instructions14 15fmulx h0, h1, h216// CHECK-INST: fmulx h0, h1, h217// CHECK-ENCODING: [0x20,0x1c,0x42,0x5e]18// CHECK-ERROR: instruction requires: fullfp1619 20frecps h0, h1, h221// CHECK-INST: frecps h0, h1, h222// CHECK-ENCODING: [0x20,0x3c,0x42,0x5e]23// CHECK-ERROR: instruction requires: fullfp1624 25frsqrts h0, h1, h226// CHECK-INST: frsqrts h0, h1, h227// CHECK-ENCODING: [0x20,0x3c,0xc2,0x5e]28// CHECK-ERROR: instruction requires: fullfp1629 30frecpe h0, h131// CHECK-INST: frecpe h0, h132// CHECK-ENCODING: [0x20,0xd8,0xf9,0x5e]33// CHECK-ERROR: instruction requires: fullfp1634 35frecpx h0, h136// CHECK-INST: frecpx h0, h137// CHECK-ENCODING: [0x20,0xf8,0xf9,0x5e]38// CHECK-ERROR: instruction requires: fullfp1639 40frsqrte h0, h141// CHECK-INST: frsqrte h0, h142// CHECK-ENCODING: [0x20,0xd8,0xf9,0x7e]43// CHECK-ERROR: instruction requires: fullfp1644