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 10fmin z0.h, p0/m, z0.h, #0.000000000000000 11// CHECK-INST: fmin z0.h, p0/m, z0.h, #0.0 12// CHECK-ENCODING: [0x00,0x80,0x5f,0x65] 13// CHECK-ERROR: instruction requires: sve 14// CHECK-UNKNOWN: 00 80 5f 65 <unknown> 15 16fmin z0.h, p0/m, z0.h, #0.0 17// CHECK-INST: fmin z0.h, p0/m, z0.h, #0.0 18// CHECK-ENCODING: [0x00,0x80,0x5f,0x65] 19// CHECK-ERROR: instruction requires: sve 20// CHECK-UNKNOWN: 00 80 5f 65 <unknown> 21 22fmin z0.s, p0/m, z0.s, #0.0 23// CHECK-INST: fmin z0.s, p0/m, z0.s, #0.0 24// CHECK-ENCODING: [0x00,0x80,0x9f,0x65] 25// CHECK-ERROR: instruction requires: sve 26// CHECK-UNKNOWN: 00 80 9f 65 <unknown> 27 28fmin z0.d, p0/m, z0.d, #0.0 29// CHECK-INST: fmin z0.d, p0/m, z0.d, #0.0 30// CHECK-ENCODING: [0x00,0x80,0xdf,0x65] 31// CHECK-ERROR: instruction requires: sve 32// CHECK-UNKNOWN: 00 80 df 65 <unknown> 33 34fmin z31.h, p7/m, z31.h, #1.000000000000000 35// CHECK-INST: fmin z31.h, p7/m, z31.h, #1.0 36// CHECK-ENCODING: [0x3f,0x9c,0x5f,0x65] 37// CHECK-ERROR: instruction requires: sve 38// CHECK-UNKNOWN: 3f 9c 5f 65 <unknown> 39 40fmin z31.h, p7/m, z31.h, #1.0 41// CHECK-INST: fmin z31.h, p7/m, z31.h, #1.0 42// CHECK-ENCODING: [0x3f,0x9c,0x5f,0x65] 43// CHECK-ERROR: instruction requires: sve 44// CHECK-UNKNOWN: 3f 9c 5f 65 <unknown> 45 46fmin z31.s, p7/m, z31.s, #1.0 47// CHECK-INST: fmin z31.s, p7/m, z31.s, #1.0 48// CHECK-ENCODING: [0x3f,0x9c,0x9f,0x65] 49// CHECK-ERROR: instruction requires: sve 50// CHECK-UNKNOWN: 3f 9c 9f 65 <unknown> 51 52fmin z31.d, p7/m, z31.d, #1.0 53// CHECK-INST: fmin z31.d, p7/m, z31.d, #1.0 54// CHECK-ENCODING: [0x3f,0x9c,0xdf,0x65] 55// CHECK-ERROR: instruction requires: sve 56// CHECK-UNKNOWN: 3f 9c df 65 <unknown> 57 58fmin z0.h, p7/m, z0.h, z31.h 59// CHECK-INST: fmin z0.h, p7/m, z0.h, z31.h 60// CHECK-ENCODING: [0xe0,0x9f,0x47,0x65] 61// CHECK-ERROR: instruction requires: sve 62// CHECK-UNKNOWN: e0 9f 47 65 <unknown> 63 64fmin z0.s, p7/m, z0.s, z31.s 65// CHECK-INST: fmin z0.s, p7/m, z0.s, z31.s 66// CHECK-ENCODING: [0xe0,0x9f,0x87,0x65] 67// CHECK-ERROR: instruction requires: sve 68// CHECK-UNKNOWN: e0 9f 87 65 <unknown> 69 70fmin z0.d, p7/m, z0.d, z31.d 71// CHECK-INST: fmin z0.d, p7/m, z0.d, z31.d 72// CHECK-ENCODING: [0xe0,0x9f,0xc7,0x65] 73// CHECK-ERROR: instruction requires: sve 74// CHECK-UNKNOWN: e0 9f c7 65 <unknown> 75 76 77// --------------------------------------------------------------------------// 78// Test compatibility with MOVPRFX instruction. 79 80movprfx z31.d, p7/z, z6.d 81// CHECK-INST: movprfx z31.d, p7/z, z6.d 82// CHECK-ENCODING: [0xdf,0x3c,0xd0,0x04] 83// CHECK-ERROR: instruction requires: sve 84// CHECK-UNKNOWN: df 3c d0 04 <unknown> 85 86fmin z31.d, p7/m, z31.d, #1.0 87// CHECK-INST: fmin z31.d, p7/m, z31.d, #1.0 88// CHECK-ENCODING: [0x3f,0x9c,0xdf,0x65] 89// CHECK-ERROR: instruction requires: sve 90// CHECK-UNKNOWN: 3f 9c df 65 <unknown> 91 92movprfx z31, z6 93// CHECK-INST: movprfx z31, z6 94// CHECK-ENCODING: [0xdf,0xbc,0x20,0x04] 95// CHECK-ERROR: instruction requires: sve 96// CHECK-UNKNOWN: df bc 20 04 <unknown> 97 98fmin z31.d, p7/m, z31.d, #1.0 99// CHECK-INST: fmin z31.d, p7/m, z31.d, #1.0 100// CHECK-ENCODING: [0x3f,0x9c,0xdf,0x65] 101// CHECK-ERROR: instruction requires: sve 102// CHECK-UNKNOWN: 3f 9c df 65 <unknown> 103 104movprfx z0.d, p7/z, z7.d 105// CHECK-INST: movprfx z0.d, p7/z, z7.d 106// CHECK-ENCODING: [0xe0,0x3c,0xd0,0x04] 107// CHECK-ERROR: instruction requires: sve 108// CHECK-UNKNOWN: e0 3c d0 04 <unknown> 109 110fmin z0.d, p7/m, z0.d, z31.d 111// CHECK-INST: fmin z0.d, p7/m, z0.d, z31.d 112// CHECK-ENCODING: [0xe0,0x9f,0xc7,0x65] 113// CHECK-ERROR: instruction requires: sve 114// CHECK-UNKNOWN: e0 9f c7 65 <unknown> 115 116movprfx z0, z7 117// CHECK-INST: movprfx z0, z7 118// CHECK-ENCODING: [0xe0,0xbc,0x20,0x04] 119// CHECK-ERROR: instruction requires: sve 120// CHECK-UNKNOWN: e0 bc 20 04 <unknown> 121 122fmin z0.d, p7/m, z0.d, z31.d 123// CHECK-INST: fmin z0.d, p7/m, z0.d, z31.d 124// CHECK-ENCODING: [0xe0,0x9f,0xc7,0x65] 125// CHECK-ERROR: instruction requires: sve 126// CHECK-UNKNOWN: e0 9f c7 65 <unknown> 127