brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 025cece Raw
77 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 12ldff1d  { z31.d }, p7/z, [sp]13// CHECK-INST: ldff1d  { z31.d }, p7/z, [sp]14// CHECK-ENCODING: [0xff,0x7f,0xff,0xa5]15// CHECK-ERROR: instruction requires: sve16// CHECK-UNKNOWN: a5ff7fff <unknown>17 18ldff1d  { z31.d }, p7/z, [sp, xzr, lsl #3]19// CHECK-INST: ldff1d  { z31.d }, p7/z, [sp]20// CHECK-ENCODING: [0xff,0x7f,0xff,0xa5]21// CHECK-ERROR: instruction requires: sve22// CHECK-UNKNOWN: a5ff7fff <unknown>23 24ldff1d  { z0.d }, p0/z, [x0, x0, lsl #3]25// CHECK-INST: ldff1d  { z0.d }, p0/z, [x0, x0, lsl #3]26// CHECK-ENCODING: [0x00,0x60,0xe0,0xa5]27// CHECK-ERROR: instruction requires: sve28// CHECK-UNKNOWN: a5e06000 <unknown>29 30ldff1d  { z31.d }, p7/z, [sp, z31.d]31// CHECK-INST: ldff1d  { z31.d }, p7/z, [sp, z31.d]32// CHECK-ENCODING: [0xff,0xff,0xdf,0xc5]33// CHECK-ERROR: instruction requires: sve34// CHECK-UNKNOWN: c5dfffff <unknown>35 36ldff1d  { z23.d }, p3/z, [x13, z8.d, lsl #3]37// CHECK-INST: ldff1d  { z23.d }, p3/z, [x13, z8.d, lsl #3]38// CHECK-ENCODING: [0xb7,0xed,0xe8,0xc5]39// CHECK-ERROR: instruction requires: sve40// CHECK-UNKNOWN: c5e8edb7 <unknown>41 42ldff1d  { z21.d }, p5/z, [x10, z21.d, uxtw]43// CHECK-INST: ldff1d  { z21.d }, p5/z, [x10, z21.d, uxtw]44// CHECK-ENCODING: [0x55,0x75,0x95,0xc5]45// CHECK-ERROR: instruction requires: sve46// CHECK-UNKNOWN: c5957555 <unknown>47 48ldff1d  { z21.d }, p5/z, [x10, z21.d, sxtw]49// CHECK-INST: ldff1d  { z21.d }, p5/z, [x10, z21.d, sxtw]50// CHECK-ENCODING: [0x55,0x75,0xd5,0xc5]51// CHECK-ERROR: instruction requires: sve52// CHECK-UNKNOWN: c5d57555 <unknown>53 54ldff1d  { z0.d }, p0/z, [x0, z0.d, uxtw #3]55// CHECK-INST: ldff1d  { z0.d }, p0/z, [x0, z0.d, uxtw #3]56// CHECK-ENCODING: [0x00,0x60,0xa0,0xc5]57// CHECK-ERROR: instruction requires: sve58// CHECK-UNKNOWN: c5a06000 <unknown>59 60ldff1d  { z0.d }, p0/z, [x0, z0.d, sxtw #3]61// CHECK-INST: ldff1d  { z0.d }, p0/z, [x0, z0.d, sxtw #3]62// CHECK-ENCODING: [0x00,0x60,0xe0,0xc5]63// CHECK-ERROR: instruction requires: sve64// CHECK-UNKNOWN: c5e06000 <unknown>65 66ldff1d  { z31.d }, p7/z, [z31.d, #248]67// CHECK-INST: ldff1d  { z31.d }, p7/z, [z31.d, #248]68// CHECK-ENCODING: [0xff,0xff,0xbf,0xc5]69// CHECK-ERROR: instruction requires: sve70// CHECK-UNKNOWN: c5bfffff <unknown>71 72ldff1d  { z0.d }, p0/z, [z0.d]73// CHECK-INST: ldff1d  { z0.d }, p0/z, [z0.d]74// CHECK-ENCODING: [0x00,0xe0,0xa0,0xc5]75// CHECK-ERROR: instruction requires: sve76// CHECK-UNKNOWN: c5a0e000 <unknown>77