brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · efd410c Raw
51 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+tlbiw,+xs < %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-prefixes=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+tlbiw,+xs < %s \6// RUN:        | llvm-objdump -d --mattr=+tlbiw,+xs --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+tlbiw,+xs < %s \8// RUN:   | llvm-objdump -d --mattr=-tlbiw,-xs --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+tlbiw,+xs < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+tlbiw,+xs -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15 16tlbi VMALLWS2E117// CHECK-INST: tlbi vmallws2e118// CHECK-ENCODING: encoding: [0x5f,0x86,0x0c,0xd5]19// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1 requires: tlbiw20// CHECK-UNKNOWN:  d50c865f      sys #4, c8, c6, #221 22tlbi VMALLWS2E1IS23// CHECK-INST: tlbi vmallws2e1is24// CHECK-ENCODING: encoding: [0x5f,0x82,0x0c,0xd5]25// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1IS requires: tlbiw26// CHECK-UNKNOWN:  d50c825f      sys #4, c8, c2, #227 28tlbi VMALLWS2E1OS29// CHECK-INST: tlbi vmallws2e1os30// CHECK-ENCODING: encoding: [0x5f,0x85,0x0c,0xd5]31// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1OS requires: tlbiw32// CHECK-UNKNOWN:  d50c855f      sys #4, c8, c5, #233 34tlbi VMALLWS2E1nXS35// CHECK-INST: tlbi vmallws2e1nxs36// CHECK-ENCODING: encoding: [0x5f,0x96,0x0c,0xd5]37// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1nXS requires: xs, tlbiw38// CHECK-UNKNOWN:  d50c965f      sys #4, c9, c6, #239 40tlbi VMALLWS2E1ISnXS41// CHECK-INST: tlbi vmallws2e1isnxs42// CHECK-ENCODING: encoding: [0x5f,0x92,0x0c,0xd5]43// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1ISnXS requires: xs, tlbiw44// CHECK-UNKNOWN:  d50c925f      sys #4, c9, c2, #245 46tlbi VMALLWS2E1OSnXS47// CHECK-INST: tlbi vmallws2e1osnxs48// CHECK-ENCODING: encoding: [0x5f,0x95,0x0c,0xd5]49// CHECK-ERROR: :[[@LINE-3]]:6: error: TLBI VMALLWS2E1OSnXS requires: xs, tlbiw50// CHECK-UNKNOWN:  d50c955f      sys #4, c9, c5, #251