x/sys/unix, syscall: incorrect return value as output parameter on s390x Big Endian #70302
Labels
arch-s390x
Issues solely affecting the s390x architecture.
compiler/runtime
Issues related to the Go compiler and/or runtime.
Milestone
Go version
go version go1.23.2 linux/s390x
Output of
go env
in your module/workspace:What did you do?
C equivalent if you want to test it on the same machine:
What did you see happen?
This program returns
549755813888
for file, which flags supposed to be128
, almost identical C program also returns128
as it is expected. Note that128 << 32 == 549755813888
. I think this bug is caused by big-endianness ofs390x
architecture.What did you expect to see?
I expected to see correct return value from output parameter (number
128
).Example file with the same flags (
128
) can be created with following commandsThe text was updated successfully, but these errors were encountered: