brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 478d748 Raw
34 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding --print-imm-hex=false -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 --print-imm-hex=false --mattr=+v9.4a - \7// RUN:        | FileCheck %s --check-prefix=CHECK-INST8// Disassemble encoding and check the re-encoding (-show-encoding) matches.9// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+v9.4a < %s \10// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \11// RUN:        | llvm-mc -triple=aarch64 -mattr=+v9.4a -disassemble -show-encoding \12// RUN:           --print-imm-hex=false \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15umin    w0, w0, #016// CHECK-INST: umin    w0, w0, #017// CHECK-ENCODING: [0x00,0x00,0xcc,0x11]18// CHECK-ERROR: instruction requires: cssc19 20umin    w21, w10, #8521// CHECK-INST: umin    w21, w10, #8522// CHECK-ENCODING: [0x55,0x55,0xcd,0x11]23// CHECK-ERROR: instruction requires: cssc24 25umin    w23, w13, #5926// CHECK-INST: umin    w23, w13, #5927// CHECK-ENCODING: [0xb7,0xed,0xcc,0x11]28// CHECK-ERROR: instruction requires: cssc29 30umin    wzr, wzr, #25531// CHECK-INST: umin    wzr, wzr, #25532// CHECK-ENCODING: [0xff,0xff,0xcf,0x11]33// CHECK-ERROR: instruction requires: cssc34