brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 41d7009 Raw
32 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+v9.4a < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+v9.4a < %s \6// RUN:        | llvm-objdump -d --mattr=+v9.4a - | FileCheck %s --check-prefix=CHECK-INST7// 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-INST12 13ctz     w0, w014// CHECK-INST: ctz     w0, w015// CHECK-ENCODING: [0x00,0x18,0xc0,0x5a]16// CHECK-ERROR: instruction requires: cssc17 18ctz     w21, w1019// CHECK-INST: ctz     w21, w1020// CHECK-ENCODING: [0x55,0x19,0xc0,0x5a]21// CHECK-ERROR: instruction requires: cssc22 23ctz     w23, w1324// CHECK-INST: ctz     w23, w1325// CHECK-ENCODING: [0xb7,0x19,0xc0,0x5a]26// CHECK-ERROR: instruction requires: cssc27 28ctz     wzr, wzr29// CHECK-INST: ctz     wzr, wzr30// CHECK-ENCODING: [0xff,0x1b,0xc0,0x5a]31// CHECK-ERROR: instruction requires: cssc32