brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 25e3f3b Raw
49 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p2 < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \8// RUN:        | llvm-objdump -d --mattr=+sve2p2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2p2 < %s \10// RUN:        | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11// 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-INST16 17movprfx  z23.d, p3/m, z31.d18frint64x z23.d, p3/m, z13.d  // 01100101-00010111-10101101-1011011119// CHECK-INST:  movprfx  z23.d, p3/m, z31.d20// CHECK-INST: frint64x z23.d, p3/m, z13.d21// CHECK-ENCODING: [0xb7,0xad,0x17,0x65]22// CHECK-ERROR: instruction requires: sme2p2 or sve2p223// CHECK-UNKNOWN: 6517adb7 <unknown>24 25movprfx z23, z3126frint64x z23.s, p3/m, z13.s  // 01100101-00010101-10101101-1011011127// CHECK-INST:  movprfx z23, z3128// CHECK-INST: frint64x z23.s, p3/m, z13.s29// CHECK-ENCODING: [0xb7,0xad,0x15,0x65]30// CHECK-ERROR: instruction requires: sme2p2 or sve2p231// CHECK-UNKNOWN: 6515adb7 <unknown>32 33frint64x z21.d, p5/m, z10.d  // 01100101-00010111-10110101-0101010134// CHECK-INST: frint64x z21.d, p5/m, z10.d35// CHECK-ENCODING: [0x55,0xb5,0x17,0x65]36// CHECK-ERROR: instruction requires: sme2p2 or sve2p237// CHECK-UNKNOWN: 6517b555 <unknown>38 39frint64x z31.d, p7/m, z31.d  // 01100101-00010111-10111111-1111111140// CHECK-INST: frint64x z31.d, p7/m, z31.d41// CHECK-ENCODING: [0xff,0xbf,0x17,0x65]42// CHECK-ERROR: instruction requires: sme2p2 or sve2p243// CHECK-UNKNOWN: 6517bfff <unknown>44 45frint64x z31.s, p7/m, z31.s  // 01100101-00010101-10111111-1111111146// CHECK-INST: frint64x z31.s, p7/m, z31.s47// CHECK-ENCODING: [0xff,0xbf,0x15,0x65]48// CHECK-ERROR: instruction requires: sme2p2 or sve2p249// CHECK-UNKNOWN: 6515bfff <unknown>