brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · c852bcc Raw
67 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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 12// Test instruction variants that aren't legal in streaming mode.13 14st1d    { z0.d }, p0, [x0, z0.d, uxtw]15// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d, uxtw]16// CHECK-ENCODING: [0x00,0x80,0x80,0xe5]17// CHECK-ERROR: instruction requires: sve18// CHECK-UNKNOWN: e5808000 <unknown>19 20st1d    { z0.d }, p0, [x0, z0.d, sxtw]21// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d, sxtw]22// CHECK-ENCODING: [0x00,0xc0,0x80,0xe5]23// CHECK-ERROR: instruction requires: sve24// CHECK-UNKNOWN: e580c000 <unknown>25 26st1d    { z0.d }, p0, [x0, z0.d, uxtw #3]27// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d, uxtw #3]28// CHECK-ENCODING: [0x00,0x80,0xa0,0xe5]29// CHECK-ERROR: instruction requires: sve30// CHECK-UNKNOWN: e5a08000 <unknown>31 32st1d    { z0.d }, p0, [x0, z0.d, sxtw #3]33// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d, sxtw #3]34// CHECK-ENCODING: [0x00,0xc0,0xa0,0xe5]35// CHECK-ERROR: instruction requires: sve36// CHECK-UNKNOWN: e5a0c000 <unknown>37 38st1d    { z0.d }, p0, [x0, z0.d]39// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d]40// CHECK-ENCODING: [0x00,0xa0,0x80,0xe5]41// CHECK-ERROR: instruction requires: sve42// CHECK-UNKNOWN: e580a000 <unknown>43 44st1d    { z0.d }, p0, [x0, z0.d, lsl #3]45// CHECK-INST: st1d    { z0.d }, p0, [x0, z0.d, lsl #3]46// CHECK-ENCODING: [0x00,0xa0,0xa0,0xe5]47// CHECK-ERROR: instruction requires: sve48// CHECK-UNKNOWN: e5a0a000 <unknown>49 50st1d    { z31.d }, p7, [z31.d, #248]51// CHECK-INST: st1d    { z31.d }, p7, [z31.d, #248]52// CHECK-ENCODING: [0xff,0xbf,0xdf,0xe5]53// CHECK-ERROR: instruction requires: sve54// CHECK-UNKNOWN: e5dfbfff <unknown>55 56st1d    { z0.d }, p7, [z0.d, #0]57// CHECK-INST: st1d    { z0.d }, p7, [z0.d]58// CHECK-ENCODING: [0x00,0xbc,0xc0,0xe5]59// CHECK-ERROR: instruction requires: sve60// CHECK-UNKNOWN: e5c0bc00 <unknown>61 62st1d    { z0.d }, p7, [z0.d]63// CHECK-INST: st1d    { z0.d }, p7, [z0.d]64// CHECK-ENCODING: [0x00,0xbc,0xc0,0xe5]65// CHECK-ERROR: instruction requires: sve66// CHECK-UNKNOWN: e5c0bc00 <unknown>67