Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE / fmla.s
blobc900535b5cdeae66b944fd324db0a8bf80fa3633
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
4 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
5 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 fmla z0.h, p7/m, z1.h, z31.h
13 // CHECK-INST: fmla z0.h, p7/m, z1.h, z31.h
14 // CHECK-ENCODING: [0x20,0x1c,0x7f,0x65]
15 // CHECK-ERROR: instruction requires: sve or sme
16 // CHECK-UNKNOWN: 657f1c20 <unknown>
18 fmla z0.s, p7/m, z1.s, z31.s
19 // CHECK-INST: fmla z0.s, p7/m, z1.s, z31.s
20 // CHECK-ENCODING: [0x20,0x1c,0xbf,0x65]
21 // CHECK-ERROR: instruction requires: sve or sme
22 // CHECK-UNKNOWN: 65bf1c20 <unknown>
24 fmla z0.d, p7/m, z1.d, z31.d
25 // CHECK-INST: fmla z0.d, p7/m, z1.d, z31.d
26 // CHECK-ENCODING: [0x20,0x1c,0xff,0x65]
27 // CHECK-ERROR: instruction requires: sve or sme
28 // CHECK-UNKNOWN: 65ff1c20 <unknown>
30 fmla z0.h, z1.h, z7.h[7]
31 // CHECK-INST: fmla z0.h, z1.h, z7.h[7]
32 // CHECK-ENCODING: [0x20,0x00,0x7f,0x64]
33 // CHECK-ERROR: instruction requires: sve or sme
34 // CHECK-UNKNOWN: 647f0020 <unknown>
36 fmla z0.s, z1.s, z7.s[3]
37 // CHECK-INST: fmla z0.s, z1.s, z7.s[3]
38 // CHECK-ENCODING: [0x20,0x00,0xbf,0x64]
39 // CHECK-ERROR: instruction requires: sve or sme
40 // CHECK-UNKNOWN: 64bf0020 <unknown>
42 fmla z0.d, z1.d, z7.d[1]
43 // CHECK-INST: fmla z0.d, z1.d, z7.d[1]
44 // CHECK-ENCODING: [0x20,0x00,0xf7,0x64]
45 // CHECK-ERROR: instruction requires: sve or sme
46 // CHECK-UNKNOWN: 64f70020 <unknown>
49 // --------------------------------------------------------------------------//
50 // Test compatibility with MOVPRFX instruction.
52 movprfx z0.d, p7/z, z7.d
53 // CHECK-INST: movprfx z0.d, p7/z, z7.d
54 // CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04]
55 // CHECK-ERROR: instruction requires: sve or sme
56 // CHECK-UNKNOWN: 04d03ce0 <unknown>
58 fmla z0.d, p7/m, z1.d, z31.d
59 // CHECK-INST: fmla z0.d, p7/m, z1.d, z31.d
60 // CHECK-ENCODING: [0x20,0x1c,0xff,0x65]
61 // CHECK-ERROR: instruction requires: sve or sme
62 // CHECK-UNKNOWN: 65ff1c20 <unknown>
64 movprfx z0, z7
65 // CHECK-INST: movprfx z0, z7
66 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
67 // CHECK-ERROR: instruction requires: sve or sme
68 // CHECK-UNKNOWN: 0420bce0 <unknown>
70 fmla z0.d, p7/m, z1.d, z31.d
71 // CHECK-INST: fmla z0.d, p7/m, z1.d, z31.d
72 // CHECK-ENCODING: [0x20,0x1c,0xff,0x65]
73 // CHECK-ERROR: instruction requires: sve or sme
74 // CHECK-UNKNOWN: 65ff1c20 <unknown>
76 movprfx z0, z7
77 // CHECK-INST: movprfx z0, z7
78 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
79 // CHECK-ERROR: instruction requires: sve or sme
80 // CHECK-UNKNOWN: 0420bce0 <unknown>
82 fmla z0.d, z1.d, z7.d[1]
83 // CHECK-INST: fmla z0.d, z1.d, z7.d[1]
84 // CHECK-ENCODING: [0x20,0x00,0xf7,0x64]
85 // CHECK-ERROR: instruction requires: sve or sme
86 // CHECK-UNKNOWN: 64f70020 <unknown>