[AMDGPU] Add True16 register classes.
[llvm-project.git] / llvm / test / MC / AArch64 / CSSC / ctz_64.s
blob3aba072b3bd65613b5d016d55dca4bf970e3597c
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+v9.4a < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+v9.4a < %s \
6 // RUN: | llvm-objdump -d --mattr=+v9.4a - | 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=+v9.4a < %s \
9 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
10 // RUN: | llvm-mc -triple=aarch64 -mattr=+v9.4a -disassemble -show-encoding \
11 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
13 ctz x0, x0
14 // CHECK-INST: ctz x0, x0
15 // CHECK-ENCODING: [0x00,0x18,0xc0,0xda]
16 // CHECK-ERROR: instruction requires: cssc
18 ctz x21, x10
19 // CHECK-INST: ctz x21, x10
20 // CHECK-ENCODING: [0x55,0x19,0xc0,0xda]
21 // CHECK-ERROR: instruction requires: cssc
23 ctz x23, x13
24 // CHECK-INST: ctz x23, x13
25 // CHECK-ENCODING: [0xb7,0x19,0xc0,0xda]
26 // CHECK-ERROR: instruction requires: cssc
28 ctz xzr, xzr
29 // CHECK-INST: ctz xzr, xzr
30 // CHECK-ENCODING: [0xff,0x1b,0xc0,0xda]
31 // CHECK-ERROR: instruction requires: cssc