brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · 8b1516a Raw
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 13cmpne   p0.b, p0/z, z0.b, z0.b14// CHECK-INST: cmpne p0.b, p0/z, z0.b, z0.b15// CHECK-ENCODING: [0x10,0xa0,0x00,0x24]16// CHECK-ERROR: instruction requires: sve or sme17// CHECK-UNKNOWN: 2400a010 <unknown>18 19cmpne   p0.h, p0/z, z0.h, z0.h20// CHECK-INST: cmpne p0.h, p0/z, z0.h, z0.h21// CHECK-ENCODING: [0x10,0xa0,0x40,0x24]22// CHECK-ERROR: instruction requires: sve or sme23// CHECK-UNKNOWN: 2440a010 <unknown>24 25cmpne   p0.s, p0/z, z0.s, z0.s26// CHECK-INST: cmpne p0.s, p0/z, z0.s, z0.s27// CHECK-ENCODING: [0x10,0xa0,0x80,0x24]28// CHECK-ERROR: instruction requires: sve or sme29// CHECK-UNKNOWN: 2480a010 <unknown>30 31cmpne   p0.d, p0/z, z0.d, z0.d32// CHECK-INST: cmpne p0.d, p0/z, z0.d, z0.d33// CHECK-ENCODING: [0x10,0xa0,0xc0,0x24]34// CHECK-ERROR: instruction requires: sve or sme35// CHECK-UNKNOWN: 24c0a010 <unknown>36 37cmpne   p0.b, p0/z, z0.b, z0.d38// CHECK-INST: cmpne p0.b, p0/z, z0.b, z0.d39// CHECK-ENCODING: [0x10,0x20,0x00,0x24]40// CHECK-ERROR: instruction requires: sve or sme41// CHECK-UNKNOWN: 24002010 <unknown>42 43cmpne   p0.h, p0/z, z0.h, z0.d44// CHECK-INST: cmpne p0.h, p0/z, z0.h, z0.d45// CHECK-ENCODING: [0x10,0x20,0x40,0x24]46// CHECK-ERROR: instruction requires: sve or sme47// CHECK-UNKNOWN: 24402010 <unknown>48 49cmpne   p0.s, p0/z, z0.s, z0.d50// CHECK-INST: cmpne p0.s, p0/z, z0.s, z0.d51// CHECK-ENCODING: [0x10,0x20,0x80,0x24]52// CHECK-ERROR: instruction requires: sve or sme53// CHECK-UNKNOWN: 24802010 <unknown>54 55cmpne   p0.b, p0/z, z0.b, #-1656// CHECK-INST: cmpne p0.b, p0/z, z0.b, #-1657// CHECK-ENCODING: [0x10,0x80,0x10,0x25]58// CHECK-ERROR: instruction requires: sve or sme59// CHECK-UNKNOWN: 25108010 <unknown>60 61cmpne   p0.h, p0/z, z0.h, #-1662// CHECK-INST: cmpne p0.h, p0/z, z0.h, #-1663// CHECK-ENCODING: [0x10,0x80,0x50,0x25]64// CHECK-ERROR: instruction requires: sve or sme65// CHECK-UNKNOWN: 25508010 <unknown>66 67cmpne   p0.s, p0/z, z0.s, #-1668// CHECK-INST: cmpne p0.s, p0/z, z0.s, #-1669// CHECK-ENCODING: [0x10,0x80,0x90,0x25]70// CHECK-ERROR: instruction requires: sve or sme71// CHECK-UNKNOWN: 25908010 <unknown>72 73cmpne   p0.d, p0/z, z0.d, #-1674// CHECK-INST: cmpne p0.d, p0/z, z0.d, #-1675// CHECK-ENCODING: [0x10,0x80,0xd0,0x25]76// CHECK-ERROR: instruction requires: sve or sme77// CHECK-UNKNOWN: 25d08010 <unknown>78 79cmpne   p0.b, p0/z, z0.b, #1580// CHECK-INST: cmpne p0.b, p0/z, z0.b, #1581// CHECK-ENCODING: [0x10,0x80,0x0f,0x25]82// CHECK-ERROR: instruction requires: sve or sme83// CHECK-UNKNOWN: 250f8010 <unknown>84 85cmpne   p0.h, p0/z, z0.h, #1586// CHECK-INST: cmpne p0.h, p0/z, z0.h, #1587// CHECK-ENCODING: [0x10,0x80,0x4f,0x25]88// CHECK-ERROR: instruction requires: sve or sme89// CHECK-UNKNOWN: 254f8010 <unknown>90 91cmpne   p0.s, p0/z, z0.s, #1592// CHECK-INST: cmpne p0.s, p0/z, z0.s, #1593// CHECK-ENCODING: [0x10,0x80,0x8f,0x25]94// CHECK-ERROR: instruction requires: sve or sme95// CHECK-UNKNOWN: 258f8010 <unknown>96 97cmpne   p0.d, p0/z, z0.d, #1598// CHECK-INST: cmpne p0.d, p0/z, z0.d, #1599// CHECK-ENCODING: [0x10,0x80,0xcf,0x25]100// CHECK-ERROR: instruction requires: sve or sme101// CHECK-UNKNOWN: 25cf8010 <unknown>102