[NVPTX] Fix `ptxas` failures (NFC) (#125147)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p2 / ucvtf_z.s
blob9e87afd60b4055b648bb9b5400acb7e0bf0116ce
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %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=+sve2p2 < %s \
8 // RUN: | llvm-objdump -d --mattr=+sve2p2 - | FileCheck %s --check-prefix=CHECK-INST
9 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \
10 // RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 // Disassemble encoding and check the re-encoding (-show-encoding) matches.
12 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \
13 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
14 // RUN: | llvm-mc -triple=aarch64 -mattr=+sve2p2 -disassemble -show-encoding \
15 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
17 // convert to half
19 ucvtf z0.h, p0/z, z0.h // 01100100-01011100-11100000-00000000
20 // CHECK-INST: ucvtf z0.h, p0/z, z0.h
21 // CHECK-ENCODING: [0x00,0xe0,0x5c,0x64]
22 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
23 // CHECK-UNKNOWN: 645ce000 <unknown>
25 ucvtf z21.h, p5/z, z10.s // 01100100-01011101-10110101-01010101
26 // CHECK-INST: ucvtf z21.h, p5/z, z10.s
27 // CHECK-ENCODING: [0x55,0xb5,0x5d,0x64]
28 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
29 // CHECK-UNKNOWN: 645db555 <unknown>
31 ucvtf z31.h, p7/z, z31.d // 01100100-01011101-11111111-11111111
32 // CHECK-INST: ucvtf z31.h, p7/z, z31.d
33 // CHECK-ENCODING: [0xff,0xff,0x5d,0x64]
34 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
35 // CHECK-UNKNOWN: 645dffff <unknown>
37 // convert to single
39 ucvtf z23.s, p3/z, z13.s // 01100100-10011101-10101101-10110111
40 // CHECK-INST: ucvtf z23.s, p3/z, z13.s
41 // CHECK-ENCODING: [0xb7,0xad,0x9d,0x64]
42 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
43 // CHECK-UNKNOWN: 649dadb7 <unknown>
45 ucvtf z21.s, p5/z, z10.d // 01100100-11011101-10110101-01010101
46 // CHECK-INST: ucvtf z21.s, p5/z, z10.d
47 // CHECK-ENCODING: [0x55,0xb5,0xdd,0x64]
48 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
49 // CHECK-UNKNOWN: 64ddb555 <unknown>
51 // convert to double
53 ucvtf z0.d, p0/z, z0.s // 01100100-11011100-10100000-00000000
54 // CHECK-INST: ucvtf z0.d, p0/z, z0.s
55 // CHECK-ENCODING: [0x00,0xa0,0xdc,0x64]
56 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
57 // CHECK-UNKNOWN: 64dca000 <unknown>
59 ucvtf z31.d, p7/z, z31.d // 01100100-11011101-11111111-11111111
60 // CHECK-INST: ucvtf z31.d, p7/z, z31.d
61 // CHECK-ENCODING: [0xff,0xff,0xdd,0x64]
62 // CHECK-ERROR: instruction requires: sme2p2 or sve2p2
63 // CHECK-UNKNOWN: 64ddffff <unknown>