102 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 12 13cmphi p0.b, p0/z, z0.b, z0.b14// CHECK-INST: cmphi p0.b, p0/z, z0.b, z0.b15// CHECK-ENCODING: [0x10,0x00,0x00,0x24]16// CHECK-ERROR: instruction requires: sve or sme17// CHECK-UNKNOWN: 24000010 <unknown>18 19cmphi p0.h, p0/z, z0.h, z0.h20// CHECK-INST: cmphi p0.h, p0/z, z0.h, z0.h21// CHECK-ENCODING: [0x10,0x00,0x40,0x24]22// CHECK-ERROR: instruction requires: sve or sme23// CHECK-UNKNOWN: 24400010 <unknown>24 25cmphi p0.s, p0/z, z0.s, z0.s26// CHECK-INST: cmphi p0.s, p0/z, z0.s, z0.s27// CHECK-ENCODING: [0x10,0x00,0x80,0x24]28// CHECK-ERROR: instruction requires: sve or sme29// CHECK-UNKNOWN: 24800010 <unknown>30 31cmphi p0.d, p0/z, z0.d, z0.d32// CHECK-INST: cmphi p0.d, p0/z, z0.d, z0.d33// CHECK-ENCODING: [0x10,0x00,0xc0,0x24]34// CHECK-ERROR: instruction requires: sve or sme35// CHECK-UNKNOWN: 24c00010 <unknown>36 37cmphi p0.b, p0/z, z0.b, z0.d38// CHECK-INST: cmphi p0.b, p0/z, z0.b, z0.d39// CHECK-ENCODING: [0x10,0xc0,0x00,0x24]40// CHECK-ERROR: instruction requires: sve or sme41// CHECK-UNKNOWN: 2400c010 <unknown>42 43cmphi p0.h, p0/z, z0.h, z0.d44// CHECK-INST: cmphi p0.h, p0/z, z0.h, z0.d45// CHECK-ENCODING: [0x10,0xc0,0x40,0x24]46// CHECK-ERROR: instruction requires: sve or sme47// CHECK-UNKNOWN: 2440c010 <unknown>48 49cmphi p0.s, p0/z, z0.s, z0.d50// CHECK-INST: cmphi p0.s, p0/z, z0.s, z0.d51// CHECK-ENCODING: [0x10,0xc0,0x80,0x24]52// CHECK-ERROR: instruction requires: sve or sme53// CHECK-UNKNOWN: 2480c010 <unknown>54 55cmphi p0.b, p0/z, z0.b, #056// CHECK-INST: cmphi p0.b, p0/z, z0.b, #057// CHECK-ENCODING: [0x10,0x00,0x20,0x24]58// CHECK-ERROR: instruction requires: sve or sme59// CHECK-UNKNOWN: 24200010 <unknown>60 61cmphi p0.h, p0/z, z0.h, #062// CHECK-INST: cmphi p0.h, p0/z, z0.h, #063// CHECK-ENCODING: [0x10,0x00,0x60,0x24]64// CHECK-ERROR: instruction requires: sve or sme65// CHECK-UNKNOWN: 24600010 <unknown>66 67cmphi p0.s, p0/z, z0.s, #068// CHECK-INST: cmphi p0.s, p0/z, z0.s, #069// CHECK-ENCODING: [0x10,0x00,0xa0,0x24]70// CHECK-ERROR: instruction requires: sve or sme71// CHECK-UNKNOWN: 24a00010 <unknown>72 73cmphi p0.d, p0/z, z0.d, #074// CHECK-INST: cmphi p0.d, p0/z, z0.d, #075// CHECK-ENCODING: [0x10,0x00,0xe0,0x24]76// CHECK-ERROR: instruction requires: sve or sme77// CHECK-UNKNOWN: 24e00010 <unknown>78 79cmphi p0.b, p0/z, z0.b, #12780// CHECK-INST: cmphi p0.b, p0/z, z0.b, #12781// CHECK-ENCODING: [0x10,0xc0,0x3f,0x24]82// CHECK-ERROR: instruction requires: sve or sme83// CHECK-UNKNOWN: 243fc010 <unknown>84 85cmphi p0.h, p0/z, z0.h, #12786// CHECK-INST: cmphi p0.h, p0/z, z0.h, #12787// CHECK-ENCODING: [0x10,0xc0,0x7f,0x24]88// CHECK-ERROR: instruction requires: sve or sme89// CHECK-UNKNOWN: 247fc010 <unknown>90 91cmphi p0.s, p0/z, z0.s, #12792// CHECK-INST: cmphi p0.s, p0/z, z0.s, #12793// CHECK-ENCODING: [0x10,0xc0,0xbf,0x24]94// CHECK-ERROR: instruction requires: sve or sme95// CHECK-UNKNOWN: 24bfc010 <unknown>96 97cmphi p0.d, p0/z, z0.d, #12798// CHECK-INST: cmphi p0.d, p0/z, z0.d, #12799// CHECK-ENCODING: [0x10,0xc0,0xff,0x24]100// CHECK-ERROR: instruction requires: sve or sme101// CHECK-UNKNOWN: 24ffc010 <unknown>102