brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.3 KiB · 1b67e35 Raw
147 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \4// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \8// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \10// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN11 12fcmla   z0.h, p0/m, z0.h, z0.h, #013// CHECK-INST: fcmla z0.h, p0/m, z0.h, z0.h, #014// CHECK-ENCODING: [0x00,0x00,0x40,0x64]15// CHECK-ERROR: instruction requires: sve or sme16// CHECK-UNKNOWN: 64400000 <unknown>17 18fcmla   z0.s, p0/m, z0.s, z0.s, #019// CHECK-INST: fcmla z0.s, p0/m, z0.s, z0.s, #020// CHECK-ENCODING: [0x00,0x00,0x80,0x64]21// CHECK-ERROR: instruction requires: sve or sme22// CHECK-UNKNOWN: 64800000 <unknown>23 24fcmla   z0.d, p0/m, z0.d, z0.d, #025// CHECK-INST: fcmla z0.d, p0/m, z0.d, z0.d, #026// CHECK-ENCODING: [0x00,0x00,0xc0,0x64]27// CHECK-ERROR: instruction requires: sve or sme28// CHECK-UNKNOWN: 64c00000 <unknown>29 30fcmla   z0.h, p0/m, z1.h, z2.h, #9031// CHECK-INST: fcmla z0.h, p0/m, z1.h, z2.h, #9032// CHECK-ENCODING: [0x20,0x20,0x42,0x64]33// CHECK-ERROR: instruction requires: sve or sme34// CHECK-UNKNOWN: 64422020 <unknown>35 36fcmla   z0.s, p0/m, z1.s, z2.s, #9037// CHECK-INST: fcmla z0.s, p0/m, z1.s, z2.s, #9038// CHECK-ENCODING: [0x20,0x20,0x82,0x64]39// CHECK-ERROR: instruction requires: sve or sme40// CHECK-UNKNOWN: 64822020 <unknown>41 42fcmla   z0.d, p0/m, z1.d, z2.d, #9043// CHECK-INST: fcmla z0.d, p0/m, z1.d, z2.d, #9044// CHECK-ENCODING: [0x20,0x20,0xc2,0x64]45// CHECK-ERROR: instruction requires: sve or sme46// CHECK-UNKNOWN: 64c22020 <unknown>47 48fcmla   z29.h, p7/m, z30.h, z31.h, #18049// CHECK-INST: fcmla z29.h, p7/m, z30.h, z31.h, #18050// CHECK-ENCODING: [0xdd,0x5f,0x5f,0x64]51// CHECK-ERROR: instruction requires: sve or sme52// CHECK-UNKNOWN: 645f5fdd <unknown>53 54fcmla   z29.s, p7/m, z30.s, z31.s, #18055// CHECK-INST: fcmla z29.s, p7/m, z30.s, z31.s, #18056// CHECK-ENCODING: [0xdd,0x5f,0x9f,0x64]57// CHECK-ERROR: instruction requires: sve or sme58// CHECK-UNKNOWN: 649f5fdd <unknown>59 60fcmla   z29.d, p7/m, z30.d, z31.d, #18061// CHECK-INST: fcmla z29.d, p7/m, z30.d, z31.d, #18062// CHECK-ENCODING: [0xdd,0x5f,0xdf,0x64]63// CHECK-ERROR: instruction requires: sve or sme64// CHECK-UNKNOWN: 64df5fdd <unknown>65 66fcmla   z31.h, p7/m, z31.h, z31.h, #27067// CHECK-INST: fcmla z31.h, p7/m, z31.h, z31.h, #27068// CHECK-ENCODING: [0xff,0x7f,0x5f,0x64]69// CHECK-ERROR: instruction requires: sve or sme70// CHECK-UNKNOWN: 645f7fff <unknown>71 72fcmla   z31.s, p7/m, z31.s, z31.s, #27073// CHECK-INST: fcmla z31.s, p7/m, z31.s, z31.s, #27074// CHECK-ENCODING: [0xff,0x7f,0x9f,0x64]75// CHECK-ERROR: instruction requires: sve or sme76// CHECK-UNKNOWN: 649f7fff <unknown>77 78fcmla   z31.d, p7/m, z31.d, z31.d, #27079// CHECK-INST: fcmla z31.d, p7/m, z31.d, z31.d, #27080// CHECK-ENCODING: [0xff,0x7f,0xdf,0x64]81// CHECK-ERROR: instruction requires: sve or sme82// CHECK-UNKNOWN: 64df7fff <unknown>83 84fcmla   z0.h, z0.h, z0.h[0], #085// CHECK-INST: fcmla   z0.h, z0.h, z0.h[0], #086// CHECK-ENCODING: [0x00,0x10,0xa0,0x64]87// CHECK-ERROR: instruction requires: sve or sme88// CHECK-UNKNOWN: 64a01000 <unknown>89 90fcmla   z23.s, z13.s, z8.s[0], #27091// CHECK-INST: fcmla   z23.s, z13.s, z8.s[0], #27092// CHECK-ENCODING: [0xb7,0x1d,0xe8,0x64]93// CHECK-ERROR: instruction requires: sve or sme94// CHECK-UNKNOWN: 64e81db7 <unknown>95 96fcmla   z31.h, z31.h, z7.h[3], #27097// CHECK-INST: fcmla   z31.h, z31.h, z7.h[3], #27098// CHECK-ENCODING: [0xff,0x1f,0xbf,0x64]99// CHECK-ERROR: instruction requires: sve or sme100// CHECK-UNKNOWN: 64bf1fff <unknown>101 102fcmla   z21.s, z10.s, z5.s[1], #90103// CHECK-INST: fcmla   z21.s, z10.s, z5.s[1], #90104// CHECK-ENCODING: [0x55,0x15,0xf5,0x64]105// CHECK-ERROR: instruction requires: sve or sme106// CHECK-UNKNOWN: 64f51555 <unknown>107 108 109// --------------------------------------------------------------------------//110// Test compatibility with MOVPRFX instruction.111 112movprfx z4.d, p7/z, z6.d113// CHECK-INST: movprfx	z4.d, p7/z, z6.d114// CHECK-ENCODING: [0xc4,0x3c,0xd0,0x04]115// CHECK-ERROR: instruction requires: sve or sme116// CHECK-UNKNOWN: 04d03cc4 <unknown>117 118fcmla   z4.d, p7/m, z31.d, z31.d, #270119// CHECK-INST: fcmla	z4.d, p7/m, z31.d, z31.d, #270120// CHECK-ENCODING: [0xe4,0x7f,0xdf,0x64]121// CHECK-ERROR: instruction requires: sve or sme122// CHECK-UNKNOWN: 64df7fe4 <unknown>123 124movprfx z4, z6125// CHECK-INST: movprfx	z4, z6126// CHECK-ENCODING: [0xc4,0xbc,0x20,0x04]127// CHECK-ERROR: instruction requires: sve or sme128// CHECK-UNKNOWN: 0420bcc4 <unknown>129 130fcmla   z4.d, p7/m, z31.d, z31.d, #270131// CHECK-INST: fcmla	z4.d, p7/m, z31.d, z31.d, #270132// CHECK-ENCODING: [0xe4,0x7f,0xdf,0x64]133// CHECK-ERROR: instruction requires: sve or sme134// CHECK-UNKNOWN: 64df7fe4 <unknown>135 136movprfx z21, z28137// CHECK-INST: movprfx	z21, z28138// CHECK-ENCODING: [0x95,0xbf,0x20,0x04]139// CHECK-ERROR: instruction requires: sve or sme140// CHECK-UNKNOWN: 0420bf95 <unknown>141 142fcmla   z21.s, z10.s, z5.s[1], #90143// CHECK-INST: fcmla	z21.s, z10.s, z5.s[1], #90144// CHECK-ENCODING: [0x55,0x15,0xf5,0x64]145// CHECK-ERROR: instruction requires: sve or sme146// CHECK-UNKNOWN: 64f51555 <unknown>147