brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · e0b2426 Raw
33 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sme < %s \6// RUN:        | llvm-objdump --no-print-imm-hex -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \8// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN9 10addsvl   x21, x21, #011// CHECK-INST: addsvl   x21, x21, #012// CHECK-ENCODING: [0x15,0x58,0x35,0x04]13// CHECK-ERROR: instruction requires: sme14// CHECK-UNKNOWN: 04355815 <unknown>15 16addsvl   x23, x8, #-117// CHECK-INST: addsvl   x23, x8, #-118// CHECK-ENCODING: [0xf7,0x5f,0x28,0x04]19// CHECK-ERROR: instruction requires: sme20// CHECK-UNKNOWN: 04285ff7 <unknown>21 22addsvl   sp, sp, #3123// CHECK-INST: addsvl   sp, sp, #3124// CHECK-ENCODING: [0xff,0x5b,0x3f,0x04]25// CHECK-ERROR: instruction requires: sme26// CHECK-UNKNOWN: 043f5bff <unknown>27 28addsvl   x0, x0, #-3229// CHECK-INST: addsvl   x0, x0, #-3230// CHECK-ENCODING: [0x00,0x5c,0x20,0x04]31// CHECK-ERROR: instruction requires: sme32// CHECK-UNKNOWN: 04205c00 <unknown>33