107 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 -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN: | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12zip1 z0.b, z0.b, z0.b13// CHECK-INST: zip1 z0.b, z0.b, z0.b14// CHECK-ENCODING: [0x00,0x60,0x20,0x05]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 05206000 <unknown>17 18zip1 z0.h, z0.h, z0.h19// CHECK-INST: zip1 z0.h, z0.h, z0.h20// CHECK-ENCODING: [0x00,0x60,0x60,0x05]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 05606000 <unknown>23 24zip1 z0.s, z0.s, z0.s25// CHECK-INST: zip1 z0.s, z0.s, z0.s26// CHECK-ENCODING: [0x00,0x60,0xa0,0x05]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 05a06000 <unknown>29 30zip1 z0.d, z0.d, z0.d31// CHECK-INST: zip1 z0.d, z0.d, z0.d32// CHECK-ENCODING: [0x00,0x60,0xe0,0x05]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 05e06000 <unknown>35 36zip1 z31.b, z31.b, z31.b37// CHECK-INST: zip1 z31.b, z31.b, z31.b38// CHECK-ENCODING: [0xff,0x63,0x3f,0x05]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 053f63ff <unknown>41 42zip1 z31.h, z31.h, z31.h43// CHECK-INST: zip1 z31.h, z31.h, z31.h44// CHECK-ENCODING: [0xff,0x63,0x7f,0x05]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 057f63ff <unknown>47 48zip1 z31.s, z31.s, z31.s49// CHECK-INST: zip1 z31.s, z31.s, z31.s50// CHECK-ENCODING: [0xff,0x63,0xbf,0x05]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 05bf63ff <unknown>53 54zip1 z31.d, z31.d, z31.d55// CHECK-INST: zip1 z31.d, z31.d, z31.d56// CHECK-ENCODING: [0xff,0x63,0xff,0x05]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 05ff63ff <unknown>59 60zip1 p0.b, p0.b, p0.b61// CHECK-INST: zip1 p0.b, p0.b, p0.b62// CHECK-ENCODING: [0x00,0x40,0x20,0x05]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 05204000 <unknown>65 66zip1 p0.h, p0.h, p0.h67// CHECK-INST: zip1 p0.h, p0.h, p0.h68// CHECK-ENCODING: [0x00,0x40,0x60,0x05]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 05604000 <unknown>71 72zip1 p0.s, p0.s, p0.s73// CHECK-INST: zip1 p0.s, p0.s, p0.s74// CHECK-ENCODING: [0x00,0x40,0xa0,0x05]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 05a04000 <unknown>77 78zip1 p0.d, p0.d, p0.d79// CHECK-INST: zip1 p0.d, p0.d, p0.d80// CHECK-ENCODING: [0x00,0x40,0xe0,0x05]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 05e04000 <unknown>83 84zip1 p15.b, p15.b, p15.b85// CHECK-INST: zip1 p15.b, p15.b, p15.b86// CHECK-ENCODING: [0xef,0x41,0x2f,0x05]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 052f41ef <unknown>89 90zip1 p15.s, p15.s, p15.s91// CHECK-INST: zip1 p15.s, p15.s, p15.s92// CHECK-ENCODING: [0xef,0x41,0xaf,0x05]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 05af41ef <unknown>95 96zip1 p15.h, p15.h, p15.h97// CHECK-INST: zip1 p15.h, p15.h, p15.h98// CHECK-ENCODING: [0xef,0x41,0x6f,0x05]99// CHECK-ERROR: instruction requires: sve or sme100// CHECK-UNKNOWN: 056f41ef <unknown>101 102zip1 p15.d, p15.d, p15.d103// CHECK-INST: zip1 p15.d, p15.d, p15.d104// CHECK-ENCODING: [0xef,0x41,0xef,0x05]105// CHECK-ERROR: instruction requires: sve or sme106// CHECK-UNKNOWN: 05ef41ef <unknown>107