cmd/internal/obj/s390x: VSTRC vector instruction emitting incorrectly for few of extended mnemonics #69216
Labels
arch-s390x
Issues solely affecting the s390x architecture.
NeedsFix
The path to resolution is known, but the work has not been done.
Go version
go 1.24
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
s390x assembler emitting incorrectly VSTRC vector instruction for few of extended mnemonics.
VSTRC V2, V4, V6, V3
VSTRCB V2, V4, V6, V8
VSTRCH V2, V4, V6, V8
VSTRCF V2, V4, V6, V8
VSTRCBS V2, V4, V6, V8
VSTRCHS V2, V4, V6, V8
VSTRCFS V2, V4, V6, V8
VSTRCZB V2, V4, V6, V8
VSTRCZH V2, V4, V6, V8
VSTRCZF V2, V4, V6, V8
VSTRCZBS V2, V4, V6, V8
VSTRCZHS V2, V4, V6, V8
VSTRCZFS V2, V4, V6, V8
when we do assembly of go asm(*.s) file with above instructions(go tool asm <file_name.s> -o <file_name.o>) and when we try to disassemble resulting object file(file_name.o) it resulting incorrect native(GNU) instructions for some of extended mnemonics as below.
vstrcb %v6,%v2,%v4,%v6
vstrch %v8,%v2,%v4,%v6
vstrcf %v8,%v2,%v4,%v6
vstrcb %v8,%v2,%v4,%v6
vstrch %v8,%v2,%v4,%v6
vstrcf %v8,%v2,%v4,%v6
vstrcb %v8,%v2,%v4,%v6
vstrch %v8,%v2,%v4,%v6
vstrcf %v8,%v2,%v4,%v6
vstrcb %v8,%v2,%v4,%v6
vstrch %v8,%v2,%v4,%v6
vstrcf %v8,%v2,%v4,%v6
What did you expect to see?
Need to fix in the codegen part of s390x assembler which handles code emitting.
The text was updated successfully, but these errors were encountered: