Test read_uxxbe across an I/O short read

This commit is contained in:
Nigel Tao committed 2018-02-22 12:23:52 +11:00
1 parent eb05139fcd
commit ea2dec09df
2 files changed
+58 -25

No files matched your search

-1
View File
@@ -752,7 +752,6 @@ func (g *gen) writeReadUXX(b *buffer, n *a.Expr, name string, size uint32, endia
b.printf("& 0xFF;")
b.printf("%s >>= 8;", scratchName)
b.printf("%s <<= 8;", scratchName)
// TODO: make a test case for 56 (correct) vs 64 (incorrect).
b.printf("%s |= ((uint64_t)(*%srptr_%s++)) << (56 - %s%d);",
scratchName, bPrefix, name, tPrefix, temp0)
case "le":