[NVPTX] Fix `ptxas` failures (NFC) (#125147)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / ursqrte.s
blobae7c2521977b369e8071698f4da45baabea63690
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 < %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=+sve2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
12 ursqrte z31.s, p7/m, z31.s
13 // CHECK-INST: ursqrte z31.s, p7/m, z31.s
14 // CHECK-ENCODING: [0xff,0xbf,0x81,0x44]
15 // CHECK-ERROR: instruction requires: sve2 or sme
16 // CHECK-UNKNOWN: 4481bfff <unknown>
19 // --------------------------------------------------------------------------//
20 // Test compatibility with MOVPRFX instruction.
22 movprfx z4.s, p7/z, z6.s
23 // CHECK-INST: movprfx z4.s, p7/z, z6.s
24 // CHECK-ENCODING: [0xc4,0x3c,0x90,0x04]
25 // CHECK-ERROR: instruction requires: sve or sme
26 // CHECK-UNKNOWN: 04903cc4 <unknown>
28 ursqrte z4.s, p7/m, z31.s
29 // CHECK-INST: ursqrte z4.s, p7/m, z31.s
30 // CHECK-ENCODING: [0xe4,0xbf,0x81,0x44]
31 // CHECK-ERROR: instruction requires: sve2 or sme
32 // CHECK-UNKNOWN: 4481bfe4 <unknown>
34 movprfx z4, z6
35 // CHECK-INST: movprfx z4, z6
36 // CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]
37 // CHECK-ERROR: instruction requires: sve or sme
38 // CHECK-UNKNOWN: 0420bcc4 <unknown>
40 ursqrte z4.s, p7/m, z31.s
41 // CHECK-INST: ursqrte z4.s, p7/m, z31.s
42 // CHECK-ENCODING: [0xe4,0xbf,0x81,0x44]
43 // CHECK-ERROR: instruction requires: sve2 or sme
44 // CHECK-UNKNOWN: 4481bfe4 <unknown>