Debian Codegraph @

llvm/test/MC/AArch64/SME/streaming-mode-neon-fp16.s

raw
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+fullfp16 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=-neon < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+fullfp16 < %s \
6 // RUN: | llvm-objdump --mattr=+fullfp16 -d - | FileCheck %s --check-prefix=CHECK-INST
7 // 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-INST
12
13 // Scalar FP instructions
14
15 fmulx h0, h1, h2
16 // CHECK-INST: fmulx h0, h1, h2
17 // CHECK-ENCODING: [0x20,0x1c,0x42,0x5e]
18 // CHECK-ERROR: instruction requires: fullfp16
19
20 frecps h0, h1, h2
21 // CHECK-INST: frecps h0, h1, h2
22 // CHECK-ENCODING: [0x20,0x3c,0x42,0x5e]
23 // CHECK-ERROR: instruction requires: fullfp16
24
25 frsqrts h0, h1, h2
26 // CHECK-INST: frsqrts h0, h1, h2
27 // CHECK-ENCODING: [0x20,0x3c,0xc2,0x5e]
28 // CHECK-ERROR: instruction requires: fullfp16
29
30 frecpe h0, h1
31 // CHECK-INST: frecpe h0, h1
32 // CHECK-ENCODING: [0x20,0xd8,0xf9,0x5e]
33 // CHECK-ERROR: instruction requires: fullfp16
34
35 frecpx h0, h1
36 // CHECK-INST: frecpx h0, h1
37 // CHECK-ENCODING: [0x20,0xf8,0xf9,0x5e]
38 // CHECK-ERROR: instruction requires: fullfp16
39
40 frsqrte h0, h1
41 // CHECK-INST: frsqrte h0, h1
42 // CHECK-ENCODING: [0x20,0xd8,0xf9,0x7e]
43 // CHECK-ERROR: instruction requires: fullfp16