brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · b6b9ad9 Raw
47 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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=+sve < %s \8// RUN:        | llvm-objdump --no-print-imm-hex -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump --no-print-imm-hex -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12ldr     z0, [x0]13// CHECK-INST: ldr     z0, [x0]14// CHECK-ENCODING: [0x00,0x40,0x80,0x85]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 85804000 <unknown>17 18ldr     z31, [sp, #-256, mul vl]19// CHECK-INST: ldr     z31, [sp, #-256, mul vl]20// CHECK-ENCODING: [0xff,0x43,0xa0,0x85]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 85a043ff <unknown>23 24ldr     z23, [x13, #255, mul vl]25// CHECK-INST: ldr     z23, [x13, #255, mul vl]26// CHECK-ENCODING: [0xb7,0x5d,0x9f,0x85]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 859f5db7 <unknown>29 30ldr     p0, [x0]31// CHECK-INST: ldr     p0, [x0]32// CHECK-ENCODING: [0x00,0x00,0x80,0x85]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 85800000 <unknown>35 36ldr     p7, [x13, #-256, mul vl]37// CHECK-INST: ldr     p7, [x13, #-256, mul vl]38// CHECK-ENCODING: [0xa7,0x01,0xa0,0x85]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 85a001a7 <unknown>41 42ldr     p5, [x10, #255, mul vl]43// CHECK-INST: ldr     p5, [x10, #255, mul vl]44// CHECK-ENCODING: [0x45,0x1d,0x9f,0x85]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 859f1d45 <unknown>47