brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 1896bcd 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 12ldff1sw { z31.d }, p7/z, [sp]13// CHECK-INST: ldff1sw { z31.d }, p7/z, [sp]14// CHECK-ENCODING: [0xff,0x7f,0x9f,0xa4]15// CHECK-ERROR: instruction requires: sve16// CHECK-UNKNOWN: a49f7fff <unknown>17 18ldff1sw { z31.d }, p7/z, [sp, xzr, lsl #2]19// CHECK-INST: ldff1sw { z31.d }, p7/z, [sp]20// CHECK-ENCODING: [0xff,0x7f,0x9f,0xa4]21// CHECK-ERROR: instruction requires: sve22// CHECK-UNKNOWN: a49f7fff <unknown>23 24ldff1sw { z0.d }, p0/z, [x0, x0, lsl #2]25// CHECK-INST: ldff1sw { z0.d }, p0/z, [x0, x0, lsl #2]26// CHECK-ENCODING: [0x00,0x60,0x80,0xa4]27// CHECK-ERROR: instruction requires: sve28// CHECK-UNKNOWN: a4806000 <unknown>29 30ldff1sw { z31.d }, p7/z, [sp, z31.d]31// CHECK-INST: ldff1sw { z31.d }, p7/z, [sp, z31.d]32// CHECK-ENCODING: [0xff,0xbf,0x5f,0xc5]33// CHECK-ERROR: instruction requires: sve34// CHECK-UNKNOWN: c55fbfff <unknown>35 36ldff1sw { z23.d }, p3/z, [x13, z8.d, lsl #2]37// CHECK-INST: ldff1sw { z23.d }, p3/z, [x13, z8.d, lsl #2]38// CHECK-ENCODING: [0xb7,0xad,0x68,0xc5]39// CHECK-ERROR: instruction requires: sve40// CHECK-UNKNOWN: c568adb7 <unknown>41 42ldff1sw { z21.d }, p5/z, [x10, z21.d, uxtw]43// CHECK-INST: ldff1sw { z21.d }, p5/z, [x10, z21.d, uxtw]44// CHECK-ENCODING: [0x55,0x35,0x15,0xc5]45// CHECK-ERROR: instruction requires: sve46// CHECK-UNKNOWN: c5153555 <unknown>47 48ldff1sw { z21.d }, p5/z, [x10, z21.d, sxtw]49// CHECK-INST: ldff1sw { z21.d }, p5/z, [x10, z21.d, sxtw]50// CHECK-ENCODING: [0x55,0x35,0x55,0xc5]51// CHECK-ERROR: instruction requires: sve52// CHECK-UNKNOWN: c5553555 <unknown>53 54ldff1sw { z0.d }, p0/z, [x0, z0.d, uxtw #2]55// CHECK-INST: ldff1sw { z0.d }, p0/z, [x0, z0.d, uxtw #2]56// CHECK-ENCODING: [0x00,0x20,0x20,0xc5]57// CHECK-ERROR: instruction requires: sve58// CHECK-UNKNOWN: c5202000 <unknown>59 60ldff1sw { z0.d }, p0/z, [x0, z0.d, sxtw #2]61// CHECK-INST: ldff1sw { z0.d }, p0/z, [x0, z0.d, sxtw #2]62// CHECK-ENCODING: [0x00,0x20,0x60,0xc5]63// CHECK-ERROR: instruction requires: sve64// CHECK-UNKNOWN: c5602000 <unknown>65 66ldff1sw { z31.d }, p7/z, [z31.d, #124]67// CHECK-INST: ldff1sw { z31.d }, p7/z, [z31.d, #124]68// CHECK-ENCODING: [0xff,0xbf,0x3f,0xc5]69// CHECK-ERROR: instruction requires: sve70// CHECK-UNKNOWN: c53fbfff <unknown>71 72ldff1sw { z0.d }, p0/z, [z0.d]73// CHECK-INST: ldff1sw { z0.d }, p0/z, [z0.d]74// CHECK-ENCODING: [0x00,0xa0,0x20,0xc5]75// CHECK-ERROR: instruction requires: sve76// CHECK-UNKNOWN: c520a000 <unknown>77