brintos

brintos / llvm-project-archived public Read only

0
0
Text · 12.8 KiB · 1b9c7a5 Raw
298 lines · plain
1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zve32f %s \2# RUN:     | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \4# RUN:     | FileCheck %s --check-prefix=CHECK-ERROR5# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+zve32f %s \6# RUN:     | llvm-objdump -d --mattr=+zve32f - \7# RUN:     | FileCheck %s --check-prefix=CHECK-INST8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+zve32f %s \9# RUN:     | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vfmacc.vv v8, v20, v4, v0.t12# CHECK-INST: vfmacc.vv v8, v20, v4, v0.t13# CHECK-ENCODING: [0x57,0x14,0x4a,0xb0]14# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}15# CHECK-UNKNOWN: b04a1457 <unknown>16 17vfmacc.vv v8, v20, v418# CHECK-INST: vfmacc.vv v8, v20, v419# CHECK-ENCODING: [0x57,0x14,0x4a,0xb2]20# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}21# CHECK-UNKNOWN: b24a1457 <unknown>22 23vfmacc.vf v8, fa0, v4, v0.t24# CHECK-INST: vfmacc.vf v8, fa0, v4, v0.t25# CHECK-ENCODING: [0x57,0x54,0x45,0xb0]26# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}27# CHECK-UNKNOWN: b0455457 <unknown>28 29vfmacc.vf v8, fa0, v430# CHECK-INST: vfmacc.vf v8, fa0, v431# CHECK-ENCODING: [0x57,0x54,0x45,0xb2]32# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}33# CHECK-UNKNOWN: b2455457 <unknown>34 35vfnmacc.vv v8, v20, v4, v0.t36# CHECK-INST: vfnmacc.vv v8, v20, v4, v0.t37# CHECK-ENCODING: [0x57,0x14,0x4a,0xb4]38# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}39# CHECK-UNKNOWN: b44a1457 <unknown>40 41vfnmacc.vv v8, v20, v442# CHECK-INST: vfnmacc.vv v8, v20, v443# CHECK-ENCODING: [0x57,0x14,0x4a,0xb6]44# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}45# CHECK-UNKNOWN: b64a1457 <unknown>46 47vfnmacc.vf v8, fa0, v4, v0.t48# CHECK-INST: vfnmacc.vf v8, fa0, v4, v0.t49# CHECK-ENCODING: [0x57,0x54,0x45,0xb4]50# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}51# CHECK-UNKNOWN: b4455457 <unknown>52 53vfnmacc.vf v8, fa0, v454# CHECK-INST: vfnmacc.vf v8, fa0, v455# CHECK-ENCODING: [0x57,0x54,0x45,0xb6]56# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}57# CHECK-UNKNOWN: b6455457 <unknown>58 59vfmsac.vv v8, v20, v4, v0.t60# CHECK-INST: vfmsac.vv v8, v20, v4, v0.t61# CHECK-ENCODING: [0x57,0x14,0x4a,0xb8]62# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}63# CHECK-UNKNOWN: b84a1457 <unknown>64 65vfmsac.vv v8, v20, v466# CHECK-INST: vfmsac.vv v8, v20, v467# CHECK-ENCODING: [0x57,0x14,0x4a,0xba]68# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}69# CHECK-UNKNOWN: ba4a1457 <unknown>70 71vfmsac.vf v8, fa0, v4, v0.t72# CHECK-INST: vfmsac.vf v8, fa0, v4, v0.t73# CHECK-ENCODING: [0x57,0x54,0x45,0xb8]74# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}75# CHECK-UNKNOWN: b8455457 <unknown>76 77vfmsac.vf v8, fa0, v478# CHECK-INST: vfmsac.vf v8, fa0, v479# CHECK-ENCODING: [0x57,0x54,0x45,0xba]80# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}81# CHECK-UNKNOWN: ba455457 <unknown>82 83vfnmsac.vv v8, v20, v4, v0.t84# CHECK-INST: vfnmsac.vv v8, v20, v4, v0.t85# CHECK-ENCODING: [0x57,0x14,0x4a,0xbc]86# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}87# CHECK-UNKNOWN: bc4a1457 <unknown>88 89vfnmsac.vv v8, v20, v490# CHECK-INST: vfnmsac.vv v8, v20, v491# CHECK-ENCODING: [0x57,0x14,0x4a,0xbe]92# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}93# CHECK-UNKNOWN: be4a1457 <unknown>94 95vfnmsac.vf v8, fa0, v4, v0.t96# CHECK-INST: vfnmsac.vf v8, fa0, v4, v0.t97# CHECK-ENCODING: [0x57,0x54,0x45,0xbc]98# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}99# CHECK-UNKNOWN: bc455457 <unknown>100 101vfnmsac.vf v8, fa0, v4102# CHECK-INST: vfnmsac.vf v8, fa0, v4103# CHECK-ENCODING: [0x57,0x54,0x45,0xbe]104# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}105# CHECK-UNKNOWN: be455457 <unknown>106 107vfmadd.vv v8, v20, v4, v0.t108# CHECK-INST: vfmadd.vv v8, v20, v4, v0.t109# CHECK-ENCODING: [0x57,0x14,0x4a,0xa0]110# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}111# CHECK-UNKNOWN: a04a1457 <unknown>112 113vfmadd.vv v8, v20, v4114# CHECK-INST: vfmadd.vv v8, v20, v4115# CHECK-ENCODING: [0x57,0x14,0x4a,0xa2]116# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}117# CHECK-UNKNOWN: a24a1457 <unknown>118 119vfmadd.vf v8, fa0, v4, v0.t120# CHECK-INST: vfmadd.vf v8, fa0, v4, v0.t121# CHECK-ENCODING: [0x57,0x54,0x45,0xa0]122# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}123# CHECK-UNKNOWN: a0455457 <unknown>124 125vfmadd.vf v8, fa0, v4126# CHECK-INST: vfmadd.vf v8, fa0, v4127# CHECK-ENCODING: [0x57,0x54,0x45,0xa2]128# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}129# CHECK-UNKNOWN: a2455457 <unknown>130 131vfnmadd.vv v8, v20, v4, v0.t132# CHECK-INST: vfnmadd.vv v8, v20, v4, v0.t133# CHECK-ENCODING: [0x57,0x14,0x4a,0xa4]134# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}135# CHECK-UNKNOWN: a44a1457 <unknown>136 137vfnmadd.vv v8, v20, v4138# CHECK-INST: vfnmadd.vv v8, v20, v4139# CHECK-ENCODING: [0x57,0x14,0x4a,0xa6]140# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}141# CHECK-UNKNOWN: a64a1457 <unknown>142 143vfnmadd.vf v8, fa0, v4, v0.t144# CHECK-INST: vfnmadd.vf v8, fa0, v4, v0.t145# CHECK-ENCODING: [0x57,0x54,0x45,0xa4]146# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}147# CHECK-UNKNOWN: a4455457 <unknown>148 149vfnmadd.vf v8, fa0, v4150# CHECK-INST: vfnmadd.vf v8, fa0, v4151# CHECK-ENCODING: [0x57,0x54,0x45,0xa6]152# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}153# CHECK-UNKNOWN: a6455457 <unknown>154 155vfmsub.vv v8, v20, v4, v0.t156# CHECK-INST: vfmsub.vv v8, v20, v4, v0.t157# CHECK-ENCODING: [0x57,0x14,0x4a,0xa8]158# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}159# CHECK-UNKNOWN: a84a1457 <unknown>160 161vfmsub.vv v8, v20, v4162# CHECK-INST: vfmsub.vv v8, v20, v4163# CHECK-ENCODING: [0x57,0x14,0x4a,0xaa]164# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}165# CHECK-UNKNOWN: aa4a1457 <unknown>166 167vfmsub.vf v8, fa0, v4, v0.t168# CHECK-INST: vfmsub.vf v8, fa0, v4, v0.t169# CHECK-ENCODING: [0x57,0x54,0x45,0xa8]170# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}171# CHECK-UNKNOWN: a8455457 <unknown>172 173vfmsub.vf v8, fa0, v4174# CHECK-INST: vfmsub.vf v8, fa0, v4175# CHECK-ENCODING: [0x57,0x54,0x45,0xaa]176# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}177# CHECK-UNKNOWN: aa455457 <unknown>178 179vfnmsub.vv v8, v20, v4, v0.t180# CHECK-INST: vfnmsub.vv v8, v20, v4, v0.t181# CHECK-ENCODING: [0x57,0x14,0x4a,0xac]182# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}183# CHECK-UNKNOWN: ac4a1457 <unknown>184 185vfnmsub.vv v8, v20, v4186# CHECK-INST: vfnmsub.vv v8, v20, v4187# CHECK-ENCODING: [0x57,0x14,0x4a,0xae]188# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}189# CHECK-UNKNOWN: ae4a1457 <unknown>190 191vfnmsub.vf v8, fa0, v4, v0.t192# CHECK-INST: vfnmsub.vf v8, fa0, v4, v0.t193# CHECK-ENCODING: [0x57,0x54,0x45,0xac]194# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}195# CHECK-UNKNOWN: ac455457 <unknown>196 197vfnmsub.vf v8, fa0, v4198# CHECK-INST: vfnmsub.vf v8, fa0, v4199# CHECK-ENCODING: [0x57,0x54,0x45,0xae]200# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}201# CHECK-UNKNOWN: ae455457 <unknown>202 203vfwmacc.vv v8, v20, v4, v0.t204# CHECK-INST: vfwmacc.vv v8, v20, v4, v0.t205# CHECK-ENCODING: [0x57,0x14,0x4a,0xf0]206# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}207# CHECK-UNKNOWN: f04a1457 <unknown>208 209vfwmacc.vv v8, v20, v4210# CHECK-INST: vfwmacc.vv v8, v20, v4211# CHECK-ENCODING: [0x57,0x14,0x4a,0xf2]212# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}213# CHECK-UNKNOWN: f24a1457 <unknown>214 215vfwmacc.vf v8, fa0, v4, v0.t216# CHECK-INST: vfwmacc.vf v8, fa0, v4, v0.t217# CHECK-ENCODING: [0x57,0x54,0x45,0xf0]218# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}219# CHECK-UNKNOWN: f0455457 <unknown>220 221vfwmacc.vf v8, fa0, v4222# CHECK-INST: vfwmacc.vf v8, fa0, v4223# CHECK-ENCODING: [0x57,0x54,0x45,0xf2]224# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}225# CHECK-UNKNOWN: f2455457 <unknown>226 227vfwnmacc.vv v8, v20, v4, v0.t228# CHECK-INST: vfwnmacc.vv v8, v20, v4, v0.t229# CHECK-ENCODING: [0x57,0x14,0x4a,0xf4]230# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}231# CHECK-UNKNOWN: f44a1457 <unknown>232 233vfwnmacc.vv v8, v20, v4234# CHECK-INST: vfwnmacc.vv v8, v20, v4235# CHECK-ENCODING: [0x57,0x14,0x4a,0xf6]236# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}237# CHECK-UNKNOWN: f64a1457 <unknown>238 239vfwnmacc.vf v8, fa0, v4, v0.t240# CHECK-INST: vfwnmacc.vf v8, fa0, v4, v0.t241# CHECK-ENCODING: [0x57,0x54,0x45,0xf4]242# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}243# CHECK-UNKNOWN: f4455457 <unknown>244 245vfwnmacc.vf v8, fa0, v4246# CHECK-INST: vfwnmacc.vf v8, fa0, v4247# CHECK-ENCODING: [0x57,0x54,0x45,0xf6]248# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}249# CHECK-UNKNOWN: f6455457 <unknown>250 251vfwmsac.vv v8, v20, v4, v0.t252# CHECK-INST: vfwmsac.vv v8, v20, v4, v0.t253# CHECK-ENCODING: [0x57,0x14,0x4a,0xf8]254# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}255# CHECK-UNKNOWN: f84a1457 <unknown>256 257vfwmsac.vv v8, v20, v4258# CHECK-INST: vfwmsac.vv v8, v20, v4259# CHECK-ENCODING: [0x57,0x14,0x4a,0xfa]260# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}261# CHECK-UNKNOWN: fa4a1457 <unknown>262 263vfwmsac.vf v8, fa0, v4, v0.t264# CHECK-INST: vfwmsac.vf v8, fa0, v4, v0.t265# CHECK-ENCODING: [0x57,0x54,0x45,0xf8]266# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}267# CHECK-UNKNOWN: f8455457 <unknown>268 269vfwmsac.vf v8, fa0, v4270# CHECK-INST: vfwmsac.vf v8, fa0, v4271# CHECK-ENCODING: [0x57,0x54,0x45,0xfa]272# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}273# CHECK-UNKNOWN: fa455457 <unknown>274 275vfwnmsac.vv v8, v20, v4, v0.t276# CHECK-INST: vfwnmsac.vv v8, v20, v4, v0.t277# CHECK-ENCODING: [0x57,0x14,0x4a,0xfc]278# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}279# CHECK-UNKNOWN: fc4a1457 <unknown>280 281vfwnmsac.vv v8, v20, v4282# CHECK-INST: vfwnmsac.vv v8, v20, v4283# CHECK-ENCODING: [0x57,0x14,0x4a,0xfe]284# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}285# CHECK-UNKNOWN: fe4a1457 <unknown>286 287vfwnmsac.vf v8, fa0, v4, v0.t288# CHECK-INST: vfwnmsac.vf v8, fa0, v4, v0.t289# CHECK-ENCODING: [0x57,0x54,0x45,0xfc]290# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}291# CHECK-UNKNOWN: fc455457 <unknown>292 293vfwnmsac.vf v8, fa0, v4294# CHECK-INST: vfwnmsac.vf v8, fa0, v4295# CHECK-ENCODING: [0x57,0x54,0x45,0xfe]296# CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}297# CHECK-UNKNOWN: fe455457 <unknown>298