diff options
Diffstat (limited to 'llvm/test/MC/AArch64/SME2/bfmin.s')
-rw-r--r-- | llvm/test/MC/AArch64/SME2/bfmin.s | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/llvm/test/MC/AArch64/SME2/bfmin.s b/llvm/test/MC/AArch64/SME2/bfmin.s new file mode 100644 index 0000000..6612e3c --- /dev/null +++ b/llvm/test/MC/AArch64/SME2/bfmin.s @@ -0,0 +1,108 @@ +// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+b16b16 < %s \ +// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST +// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-ERROR +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+b16b16 < %s \ +// RUN: | llvm-objdump -d --mattr=-sme2 --mattr=+sme2,+b16b16 - | FileCheck %s --check-prefix=CHECK-INST +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+b16b16 < %s \ +// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN +// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+b16b16 < %s \ +// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ +// RUN: | llvm-mc -triple=aarch64 -mattr=+sme2,+b16b16 -disassemble -show-encoding \ +// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST + +bfmin {z0.h, z1.h}, {z0.h, z1.h}, z0.h // 11000001-00100000-10100001-00000001 +// CHECK-INST: bfmin { z0.h, z1.h }, { z0.h, z1.h }, z0.h +// CHECK-ENCODING: [0x01,0xa1,0x20,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c120a101 <unknown> + +bfmin {z20.h, z21.h}, {z20.h, z21.h}, z5.h // 11000001-00100101-10100001-00010101 +// CHECK-INST: bfmin { z20.h, z21.h }, { z20.h, z21.h }, z5.h +// CHECK-ENCODING: [0x15,0xa1,0x25,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c125a115 <unknown> + +bfmin {z22.h, z23.h}, {z22.h, z23.h}, z8.h // 11000001-00101000-10100001-00010111 +// CHECK-INST: bfmin { z22.h, z23.h }, { z22.h, z23.h }, z8.h +// CHECK-ENCODING: [0x17,0xa1,0x28,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c128a117 <unknown> + +bfmin {z30.h, z31.h}, {z30.h, z31.h}, z15.h // 11000001-00101111-10100001-00011111 +// CHECK-INST: bfmin { z30.h, z31.h }, { z30.h, z31.h }, z15.h +// CHECK-ENCODING: [0x1f,0xa1,0x2f,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c12fa11f <unknown> + +bfmin {z0.h, z1.h}, {z0.h, z1.h}, {z0.h, z1.h} // 11000001-00100000-10110001-00000001 +// CHECK-INST: bfmin { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h } +// CHECK-ENCODING: [0x01,0xb1,0x20,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c120b101 <unknown> + +bfmin {z20.h, z21.h}, {z20.h, z21.h}, {z20.h, z21.h} // 11000001-00110100-10110001-00010101 +// CHECK-INST: bfmin { z20.h, z21.h }, { z20.h, z21.h }, { z20.h, z21.h } +// CHECK-ENCODING: [0x15,0xb1,0x34,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c134b115 <unknown> + +bfmin {z22.h, z23.h}, {z22.h, z23.h}, {z8.h, z9.h} // 11000001-00101000-10110001-00010111 +// CHECK-INST: bfmin { z22.h, z23.h }, { z22.h, z23.h }, { z8.h, z9.h } +// CHECK-ENCODING: [0x17,0xb1,0x28,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c128b117 <unknown> + +bfmin {z30.h, z31.h}, {z30.h, z31.h}, {z30.h, z31.h} // 11000001-00111110-10110001-00011111 +// CHECK-INST: bfmin { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h } +// CHECK-ENCODING: [0x1f,0xb1,0x3e,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c13eb11f <unknown> + +bfmin {z0.h - z3.h}, {z0.h - z3.h}, z0.h // 11000001-00100000-10101001-00000001 +// CHECK-INST: bfmin { z0.h - z3.h }, { z0.h - z3.h }, z0.h +// CHECK-ENCODING: [0x01,0xa9,0x20,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c120a901 <unknown> + +bfmin {z20.h - z23.h}, {z20.h - z23.h}, z5.h // 11000001-00100101-10101001-00010101 +// CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, z5.h +// CHECK-ENCODING: [0x15,0xa9,0x25,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c125a915 <unknown> + +bfmin {z20.h - z23.h}, {z20.h - z23.h}, z8.h // 11000001-00101000-10101001-00010101 +// CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, z8.h +// CHECK-ENCODING: [0x15,0xa9,0x28,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c128a915 <unknown> + +bfmin {z28.h - z31.h}, {z28.h - z31.h}, z15.h // 11000001-00101111-10101001-00011101 +// CHECK-INST: bfmin { z28.h - z31.h }, { z28.h - z31.h }, z15.h +// CHECK-ENCODING: [0x1d,0xa9,0x2f,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c12fa91d <unknown> + +bfmin {z0.h - z3.h}, {z0.h - z3.h}, {z0.h - z3.h} // 11000001-00100000-10111001-00000001 +// CHECK-INST: bfmin { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h } +// CHECK-ENCODING: [0x01,0xb9,0x20,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c120b901 <unknown> + +bfmin {z20.h - z23.h}, {z20.h - z23.h}, {z20.h - z23.h} // 11000001-00110100-10111001-00010101 +// CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, { z20.h - z23.h } +// CHECK-ENCODING: [0x15,0xb9,0x34,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c134b915 <unknown> + +bfmin {z20.h - z23.h}, {z20.h - z23.h}, {z8.h - z11.h} // 11000001-00101000-10111001-00010101 +// CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, { z8.h - z11.h } +// CHECK-ENCODING: [0x15,0xb9,0x28,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c128b915 <unknown> + +bfmin {z28.h - z31.h}, {z28.h - z31.h}, {z28.h - z31.h} // 11000001-00111100-10111001-00011101 +// CHECK-INST: bfmin { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h } +// CHECK-ENCODING: [0x1d,0xb9,0x3c,0xc1] +// CHECK-ERROR: instruction requires: b16b16 sme2 +// CHECK-UNKNOWN: c13cb91d <unknown> |