brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · c5f99f0 Raw
42 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+lut < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3 4// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \5// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR6 7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+lut < %s \8// RUN:        | llvm-objdump -d --mattr=+lut - | FileCheck %s --check-prefix=CHECK-INST9 10// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+lut < %s \11// RUN:        | llvm-objdump -d --mattr=-lut - | FileCheck %s --check-prefix=CHECK-UNKNOWN12 13// Disassemble encoding and check the re-encoding (-show-encoding) matches.14// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+lut < %s \15// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \16// RUN:        | llvm-mc -triple=aarch64 -mattr=+lut -disassemble -show-encoding \17// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST18 19luti2   v1.16b, {v2.16b}, v0[0]  // 01001110-10000000-00010000-0100000120// CHECK-INST: luti2   v1.16b, { v2.16b }, v0[0]21// CHECK-ENCODING: [0x41,0x10,0x80,0x4e]22// CHECK-ERROR: instruction requires: lut23// CHECK-UNKNOWN: 4e801041 <unknown>24 25luti2   v30.16b, {v20.16b}, v31[3]  // 01001110-10011111-01110010-1001111026// CHECK-INST: luti2   v30.16b, { v20.16b }, v31[3]27// CHECK-ENCODING: [0x9e,0x72,0x9f,0x4e]28// CHECK-ERROR: instruction requires: lut29// CHECK-UNKNOWN: 4e9f729e <unknown>30 31luti2   v1.8h, {v2.8h}, v0[0]  // 01001110-11000000-00000000-0100000132// CHECK-INST: luti2   v1.8h, { v2.8h }, v0[0]33// CHECK-ENCODING: [0x41,0x00,0xc0,0x4e]34// CHECK-ERROR: instruction requires: lut35// CHECK-UNKNOWN: 4ec00041 <unknown>36 37luti2   v30.8h, {v20.8h}, v31[7]  // 01001110-11011111-01110010-1001111038// CHECK-INST: luti2   v30.8h, { v20.8h }, v31[7]39// CHECK-ENCODING: [0x9e,0x72,0xdf,0x4e]40// CHECK-ERROR: instruction requires: lut41// CHECK-UNKNOWN: 4edf729e <unknown>42