164 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \6// RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \8// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \10// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \11// RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \12// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST13 14 15fclamp {z0.d, z1.d}, z0.d, z0.d // 11000001-11100000-11000000-0000000016// CHECK-INST: fclamp { z0.d, z1.d }, z0.d, z0.d17// CHECK-ENCODING: [0x00,0xc0,0xe0,0xc1]18// CHECK-ERROR: instruction requires: sme219// CHECK-UNKNOWN: c1e0c000 <unknown>20 21fclamp {z20.d, z21.d}, z10.d, z21.d // 11000001-11110101-11000001-0101010022// CHECK-INST: fclamp { z20.d, z21.d }, z10.d, z21.d23// CHECK-ENCODING: [0x54,0xc1,0xf5,0xc1]24// CHECK-ERROR: instruction requires: sme225// CHECK-UNKNOWN: c1f5c154 <unknown>26 27fclamp {z22.d, z23.d}, z13.d, z8.d // 11000001-11101000-11000001-1011011028// CHECK-INST: fclamp { z22.d, z23.d }, z13.d, z8.d29// CHECK-ENCODING: [0xb6,0xc1,0xe8,0xc1]30// CHECK-ERROR: instruction requires: sme231// CHECK-UNKNOWN: c1e8c1b6 <unknown>32 33fclamp {z30.d, z31.d}, z31.d, z31.d // 11000001-11111111-11000011-1111111034// CHECK-INST: fclamp { z30.d, z31.d }, z31.d, z31.d35// CHECK-ENCODING: [0xfe,0xc3,0xff,0xc1]36// CHECK-ERROR: instruction requires: sme237// CHECK-UNKNOWN: c1ffc3fe <unknown>38 39 40fclamp {z0.h, z1.h}, z0.h, z0.h // 11000001-01100000-11000000-0000000041// CHECK-INST: fclamp { z0.h, z1.h }, z0.h, z0.h42// CHECK-ENCODING: [0x00,0xc0,0x60,0xc1]43// CHECK-ERROR: instruction requires: sme244// CHECK-UNKNOWN: c160c000 <unknown>45 46fclamp {z20.h, z21.h}, z10.h, z21.h // 11000001-01110101-11000001-0101010047// CHECK-INST: fclamp { z20.h, z21.h }, z10.h, z21.h48// CHECK-ENCODING: [0x54,0xc1,0x75,0xc1]49// CHECK-ERROR: instruction requires: sme250// CHECK-UNKNOWN: c175c154 <unknown>51 52fclamp {z22.h, z23.h}, z13.h, z8.h // 11000001-01101000-11000001-1011011053// CHECK-INST: fclamp { z22.h, z23.h }, z13.h, z8.h54// CHECK-ENCODING: [0xb6,0xc1,0x68,0xc1]55// CHECK-ERROR: instruction requires: sme256// CHECK-UNKNOWN: c168c1b6 <unknown>57 58fclamp {z30.h, z31.h}, z31.h, z31.h // 11000001-01111111-11000011-1111111059// CHECK-INST: fclamp { z30.h, z31.h }, z31.h, z31.h60// CHECK-ENCODING: [0xfe,0xc3,0x7f,0xc1]61// CHECK-ERROR: instruction requires: sme262// CHECK-UNKNOWN: c17fc3fe <unknown>63 64 65fclamp {z0.s, z1.s}, z0.s, z0.s // 11000001-10100000-11000000-0000000066// CHECK-INST: fclamp { z0.s, z1.s }, z0.s, z0.s67// CHECK-ENCODING: [0x00,0xc0,0xa0,0xc1]68// CHECK-ERROR: instruction requires: sme269// CHECK-UNKNOWN: c1a0c000 <unknown>70 71fclamp {z20.s, z21.s}, z10.s, z21.s // 11000001-10110101-11000001-0101010072// CHECK-INST: fclamp { z20.s, z21.s }, z10.s, z21.s73// CHECK-ENCODING: [0x54,0xc1,0xb5,0xc1]74// CHECK-ERROR: instruction requires: sme275// CHECK-UNKNOWN: c1b5c154 <unknown>76 77fclamp {z22.s, z23.s}, z13.s, z8.s // 11000001-10101000-11000001-1011011078// CHECK-INST: fclamp { z22.s, z23.s }, z13.s, z8.s79// CHECK-ENCODING: [0xb6,0xc1,0xa8,0xc1]80// CHECK-ERROR: instruction requires: sme281// CHECK-UNKNOWN: c1a8c1b6 <unknown>82 83fclamp {z30.s, z31.s}, z31.s, z31.s // 11000001-10111111-11000011-1111111084// CHECK-INST: fclamp { z30.s, z31.s }, z31.s, z31.s85// CHECK-ENCODING: [0xfe,0xc3,0xbf,0xc1]86// CHECK-ERROR: instruction requires: sme287// CHECK-UNKNOWN: c1bfc3fe <unknown>88 89 90fclamp {z0.d - z3.d}, z0.d, z0.d // 11000001-11100000-11001000-0000000091// CHECK-INST: fclamp { z0.d - z3.d }, z0.d, z0.d92// CHECK-ENCODING: [0x00,0xc8,0xe0,0xc1]93// CHECK-ERROR: instruction requires: sme294// CHECK-UNKNOWN: c1e0c800 <unknown>95 96fclamp {z20.d - z23.d}, z10.d, z21.d // 11000001-11110101-11001001-0101010097// CHECK-INST: fclamp { z20.d - z23.d }, z10.d, z21.d98// CHECK-ENCODING: [0x54,0xc9,0xf5,0xc1]99// CHECK-ERROR: instruction requires: sme2100// CHECK-UNKNOWN: c1f5c954 <unknown>101 102fclamp {z20.d - z23.d}, z13.d, z8.d // 11000001-11101000-11001001-10110100103// CHECK-INST: fclamp { z20.d - z23.d }, z13.d, z8.d104// CHECK-ENCODING: [0xb4,0xc9,0xe8,0xc1]105// CHECK-ERROR: instruction requires: sme2106// CHECK-UNKNOWN: c1e8c9b4 <unknown>107 108fclamp {z28.d - z31.d}, z31.d, z31.d // 11000001-11111111-11001011-11111100109// CHECK-INST: fclamp { z28.d - z31.d }, z31.d, z31.d110// CHECK-ENCODING: [0xfc,0xcb,0xff,0xc1]111// CHECK-ERROR: instruction requires: sme2112// CHECK-UNKNOWN: c1ffcbfc <unknown>113 114 115fclamp {z0.h - z3.h}, z0.h, z0.h // 11000001-01100000-11001000-00000000116// CHECK-INST: fclamp { z0.h - z3.h }, z0.h, z0.h117// CHECK-ENCODING: [0x00,0xc8,0x60,0xc1]118// CHECK-ERROR: instruction requires: sme2119// CHECK-UNKNOWN: c160c800 <unknown>120 121fclamp {z20.h - z23.h}, z10.h, z21.h // 11000001-01110101-11001001-01010100122// CHECK-INST: fclamp { z20.h - z23.h }, z10.h, z21.h123// CHECK-ENCODING: [0x54,0xc9,0x75,0xc1]124// CHECK-ERROR: instruction requires: sme2125// CHECK-UNKNOWN: c175c954 <unknown>126 127fclamp {z20.h - z23.h}, z13.h, z8.h // 11000001-01101000-11001001-10110100128// CHECK-INST: fclamp { z20.h - z23.h }, z13.h, z8.h129// CHECK-ENCODING: [0xb4,0xc9,0x68,0xc1]130// CHECK-ERROR: instruction requires: sme2131// CHECK-UNKNOWN: c168c9b4 <unknown>132 133fclamp {z28.h - z31.h}, z31.h, z31.h // 11000001-01111111-11001011-11111100134// CHECK-INST: fclamp { z28.h - z31.h }, z31.h, z31.h135// CHECK-ENCODING: [0xfc,0xcb,0x7f,0xc1]136// CHECK-ERROR: instruction requires: sme2137// CHECK-UNKNOWN: c17fcbfc <unknown>138 139 140fclamp {z0.s - z3.s}, z0.s, z0.s // 11000001-10100000-11001000-00000000141// CHECK-INST: fclamp { z0.s - z3.s }, z0.s, z0.s142// CHECK-ENCODING: [0x00,0xc8,0xa0,0xc1]143// CHECK-ERROR: instruction requires: sme2144// CHECK-UNKNOWN: c1a0c800 <unknown>145 146fclamp {z20.s - z23.s}, z10.s, z21.s // 11000001-10110101-11001001-01010100147// CHECK-INST: fclamp { z20.s - z23.s }, z10.s, z21.s148// CHECK-ENCODING: [0x54,0xc9,0xb5,0xc1]149// CHECK-ERROR: instruction requires: sme2150// CHECK-UNKNOWN: c1b5c954 <unknown>151 152fclamp {z20.s - z23.s}, z13.s, z8.s // 11000001-10101000-11001001-10110100153// CHECK-INST: fclamp { z20.s - z23.s }, z13.s, z8.s154// CHECK-ENCODING: [0xb4,0xc9,0xa8,0xc1]155// CHECK-ERROR: instruction requires: sme2156// CHECK-UNKNOWN: c1a8c9b4 <unknown>157 158fclamp {z28.s - z31.s}, z31.s, z31.s // 11000001-10111111-11001011-11111100159// CHECK-INST: fclamp { z28.s - z31.s }, z31.s, z31.s160// CHECK-ENCODING: [0xfc,0xcb,0xbf,0xc1]161// CHECK-ERROR: instruction requires: sme2162// CHECK-UNKNOWN: c1bfcbfc <unknown>163 164