brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · ead22e1 Raw
101 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 12cmpge   p0.b, p0/z, z0.b, z0.b13// CHECK-INST: cmpge   p0.b, p0/z, z0.b, z0.b14// CHECK-ENCODING: [0x00,0x80,0x00,0x24]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 24008000 <unknown>17 18cmpge   p0.h, p0/z, z0.h, z0.h19// CHECK-INST: cmpge   p0.h, p0/z, z0.h, z0.h20// CHECK-ENCODING: [0x00,0x80,0x40,0x24]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 24408000 <unknown>23 24cmpge   p0.s, p0/z, z0.s, z0.s25// CHECK-INST: cmpge   p0.s, p0/z, z0.s, z0.s26// CHECK-ENCODING: [0x00,0x80,0x80,0x24]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 24808000 <unknown>29 30cmpge   p0.d, p0/z, z0.d, z0.d31// CHECK-INST: cmpge   p0.d, p0/z, z0.d, z0.d32// CHECK-ENCODING: [0x00,0x80,0xc0,0x24]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 24c08000 <unknown>35 36cmpge   p0.b, p0/z, z0.b, z0.d37// CHECK-INST: cmpge   p0.b, p0/z, z0.b, z0.d38// CHECK-ENCODING: [0x00,0x40,0x00,0x24]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 24004000 <unknown>41 42cmpge   p0.h, p0/z, z0.h, z0.d43// CHECK-INST: cmpge   p0.h, p0/z, z0.h, z0.d44// CHECK-ENCODING: [0x00,0x40,0x40,0x24]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 24404000 <unknown>47 48cmpge   p0.s, p0/z, z0.s, z0.d49// CHECK-INST: cmpge   p0.s, p0/z, z0.s, z0.d50// CHECK-ENCODING: [0x00,0x40,0x80,0x24]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 24804000 <unknown>53 54cmpge   p0.b, p0/z, z0.b, #-1655// CHECK-INST: cmpge p0.b, p0/z, z0.b, #-1656// CHECK-ENCODING: [0x00,0x00,0x10,0x25]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 25100000 <unknown>59 60cmpge   p0.h, p0/z, z0.h, #-1661// CHECK-INST: cmpge p0.h, p0/z, z0.h, #-1662// CHECK-ENCODING: [0x00,0x00,0x50,0x25]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 25500000 <unknown>65 66cmpge   p0.s, p0/z, z0.s, #-1667// CHECK-INST: cmpge p0.s, p0/z, z0.s, #-1668// CHECK-ENCODING: [0x00,0x00,0x90,0x25]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 25900000 <unknown>71 72cmpge   p0.d, p0/z, z0.d, #-1673// CHECK-INST: cmpge p0.d, p0/z, z0.d, #-1674// CHECK-ENCODING: [0x00,0x00,0xd0,0x25]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 25d00000 <unknown>77 78cmpge   p0.b, p0/z, z0.b, #1579// CHECK-INST: cmpge p0.b, p0/z, z0.b, #1580// CHECK-ENCODING: [0x00,0x00,0x0f,0x25]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 250f0000 <unknown>83 84cmpge   p0.h, p0/z, z0.h, #1585// CHECK-INST: cmpge p0.h, p0/z, z0.h, #1586// CHECK-ENCODING: [0x00,0x00,0x4f,0x25]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 254f0000 <unknown>89 90cmpge   p0.s, p0/z, z0.s, #1591// CHECK-INST: cmpge p0.s, p0/z, z0.s, #1592// CHECK-ENCODING: [0x00,0x00,0x8f,0x25]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 258f0000 <unknown>95 96cmpge   p0.d, p0/z, z0.d, #1597// CHECK-INST: cmpge p0.d, p0/z, z0.d, #1598// CHECK-ENCODING: [0x00,0x00,0xcf,0x25]99// CHECK-ERROR: instruction requires: sve or sme100// CHECK-UNKNOWN: 25cf0000 <unknown>101