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 10cmplo p0.b, p0/z, z0.b, z1.b 11// CHECK-INST: cmphi p0.b, p0/z, z1.b, z0.b 12// CHECK-ENCODING: [0x30,0x00,0x00,0x24] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: 30 00 00 24 <unknown> 15 16cmplo p0.h, p0/z, z0.h, z1.h 17// CHECK-INST: cmphi p0.h, p0/z, z1.h, z0.h 18// CHECK-ENCODING: [0x30,0x00,0x40,0x24] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: 30 00 40 24 <unknown> 21 22cmplo p0.s, p0/z, z0.s, z1.s 23// CHECK-INST: cmphi p0.s, p0/z, z1.s, z0.s 24// CHECK-ENCODING: [0x30,0x00,0x80,0x24] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: 30 00 80 24 <unknown> 27 28cmplo p0.d, p0/z, z0.d, z1.d 29// CHECK-INST: cmphi p0.d, p0/z, z1.d, z0.d 30// CHECK-ENCODING: [0x30,0x00,0xc0,0x24] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: 30 00 c0 24 <unknown> 33 34cmplo p0.b, p0/z, z0.b, z0.d 35// CHECK-INST: cmplo p0.b, p0/z, z0.b, z0.d 36// CHECK-ENCODING: [0x00,0xe0,0x00,0x24] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: 00 e0 00 24 <unknown> 39 40cmplo p0.h, p0/z, z0.h, z0.d 41// CHECK-INST: cmplo p0.h, p0/z, z0.h, z0.d 42// CHECK-ENCODING: [0x00,0xe0,0x40,0x24] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: 00 e0 40 24 <unknown> 45 46cmplo p0.s, p0/z, z0.s, z0.d 47// CHECK-INST: cmplo p0.s, p0/z, z0.s, z0.d 48// CHECK-ENCODING: [0x00,0xe0,0x80,0x24] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: 00 e0 80 24 <unknown> 51 52cmplo p0.b, p0/z, z0.b, #0 53// CHECK-INST: cmplo p0.b, p0/z, z0.b, #0 54// CHECK-ENCODING: [0x00,0x20,0x20,0x24] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: 00 20 20 24 <unknown> 57 58cmplo p0.h, p0/z, z0.h, #0 59// CHECK-INST: cmplo p0.h, p0/z, z0.h, #0 60// CHECK-ENCODING: [0x00,0x20,0x60,0x24] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: 00 20 60 24 <unknown> 63 64cmplo p0.s, p0/z, z0.s, #0 65// CHECK-INST: cmplo p0.s, p0/z, z0.s, #0 66// CHECK-ENCODING: [0x00,0x20,0xa0,0x24] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: 00 20 a0 24 <unknown> 69 70cmplo p0.d, p0/z, z0.d, #0 71// CHECK-INST: cmplo p0.d, p0/z, z0.d, #0 72// CHECK-ENCODING: [0x00,0x20,0xe0,0x24] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: 00 20 e0 24 <unknown> 75 76cmplo p0.b, p0/z, z0.b, #127 77// CHECK-INST: cmplo p0.b, p0/z, z0.b, #127 78// CHECK-ENCODING: [0x00,0xe0,0x3f,0x24] 79// CHECK-ERROR: instruction requires: sve 80// CHECK-UNKNOWN: 00 e0 3f 24 <unknown> 81 82cmplo p0.h, p0/z, z0.h, #127 83// CHECK-INST: cmplo p0.h, p0/z, z0.h, #127 84// CHECK-ENCODING: [0x00,0xe0,0x7f,0x24] 85// CHECK-ERROR: instruction requires: sve 86// CHECK-UNKNOWN: 00 e0 7f 24 <unknown> 87 88cmplo p0.s, p0/z, z0.s, #127 89// CHECK-INST: cmplo p0.s, p0/z, z0.s, #127 90// CHECK-ENCODING: [0x00,0xe0,0xbf,0x24] 91// CHECK-ERROR: instruction requires: sve 92// CHECK-UNKNOWN: 00 e0 bf 24 <unknown> 93 94cmplo p0.d, p0/z, z0.d, #127 95// CHECK-INST: cmplo p0.d, p0/z, z0.d, #127 96// CHECK-ENCODING: [0x00,0xe0,0xff,0x24] 97// CHECK-ERROR: instruction requires: sve 98// CHECK-UNKNOWN: 00 e0 ff 24 <unknown> 99