1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ 2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST 3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ 4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR 5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ 6// RUN: | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST 7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ 8// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN 9 10cmpls p0.b, p0/z, z0.b, z1.b 11// CHECK-INST: cmphs p0.b, p0/z, z1.b, z0.b 12// CHECK-ENCODING: [0x20,0x00,0x00,0x24] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: 20 00 00 24 <unknown> 15 16cmpls p0.h, p0/z, z0.h, z1.h 17// CHECK-INST: cmphs p0.h, p0/z, z1.h, z0.h 18// CHECK-ENCODING: [0x20,0x00,0x40,0x24] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: 20 00 40 24 <unknown> 21 22cmpls p0.s, p0/z, z0.s, z1.s 23// CHECK-INST: cmphs p0.s, p0/z, z1.s, z0.s 24// CHECK-ENCODING: [0x20,0x00,0x80,0x24] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: 20 00 80 24 <unknown> 27 28cmpls p0.d, p0/z, z0.d, z1.d 29// CHECK-INST: cmphs p0.d, p0/z, z1.d, z0.d 30// CHECK-ENCODING: [0x20,0x00,0xc0,0x24] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: 20 00 c0 24 <unknown> 33 34cmpls p0.b, p0/z, z0.b, z0.d 35// CHECK-INST: cmpls p0.b, p0/z, z0.b, z0.d 36// CHECK-ENCODING: [0x10,0xe0,0x00,0x24] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: 10 e0 00 24 <unknown> 39 40cmpls p0.h, p0/z, z0.h, z0.d 41// CHECK-INST: cmpls p0.h, p0/z, z0.h, z0.d 42// CHECK-ENCODING: [0x10,0xe0,0x40,0x24] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: 10 e0 40 24 <unknown> 45 46cmpls p0.s, p0/z, z0.s, z0.d 47// CHECK-INST: cmpls p0.s, p0/z, z0.s, z0.d 48// CHECK-ENCODING: [0x10,0xe0,0x80,0x24] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: 10 e0 80 24 <unknown> 51 52cmpls p0.b, p0/z, z0.b, #0 53// CHECK-INST: cmpls p0.b, p0/z, z0.b, #0 54// CHECK-ENCODING: [0x10,0x20,0x20,0x24] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: 10 20 20 24 <unknown> 57 58cmpls p0.h, p0/z, z0.h, #0 59// CHECK-INST: cmpls p0.h, p0/z, z0.h, #0 60// CHECK-ENCODING: [0x10,0x20,0x60,0x24] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: 10 20 60 24 <unknown> 63 64cmpls p0.s, p0/z, z0.s, #0 65// CHECK-INST: cmpls p0.s, p0/z, z0.s, #0 66// CHECK-ENCODING: [0x10,0x20,0xa0,0x24] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: 10 20 a0 24 <unknown> 69 70cmpls p0.d, p0/z, z0.d, #0 71// CHECK-INST: cmpls p0.d, p0/z, z0.d, #0 72// CHECK-ENCODING: [0x10,0x20,0xe0,0x24] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: 10 20 e0 24 <unknown> 75 76cmpls p0.b, p0/z, z0.b, #127 77// CHECK-INST: cmpls p0.b, p0/z, z0.b, #127 78// CHECK-ENCODING: [0x10,0xe0,0x3f,0x24] 79// CHECK-ERROR: instruction requires: sve 80// CHECK-UNKNOWN: 10 e0 3f 24 <unknown> 81 82cmpls p0.h, p0/z, z0.h, #127 83// CHECK-INST: cmpls p0.h, p0/z, z0.h, #127 84// CHECK-ENCODING: [0x10,0xe0,0x7f,0x24] 85// CHECK-ERROR: instruction requires: sve 86// CHECK-UNKNOWN: 10 e0 7f 24 <unknown> 87 88cmpls p0.s, p0/z, z0.s, #127 89// CHECK-INST: cmpls p0.s, p0/z, z0.s, #127 90// CHECK-ENCODING: [0x10,0xe0,0xbf,0x24] 91// CHECK-ERROR: instruction requires: sve 92// CHECK-UNKNOWN: 10 e0 bf 24 <unknown> 93 94cmpls p0.d, p0/z, z0.d, #127 95// CHECK-INST: cmpls p0.d, p0/z, z0.d, #127 96// CHECK-ENCODING: [0x10,0xe0,0xff,0x24] 97// CHECK-ERROR: instruction requires: sve 98// CHECK-UNKNOWN: 10 e0 ff 24 <unknown> 99