77package codegen
88
99// A uint16 or sint16 constant shifted left.
10- func shifted16BitConstants (out [64 ]uint64 ) {
10+ func shifted16BitConstants () ( out [64 ]uint64 ) {
1111 // ppc64x: "MOVD\t[$]8193,", "SLD\t[$]27,"
1212 out [0 ] = 0x0000010008000000
1313 // ppc64x: "MOVD\t[$]-32767", "SLD\t[$]26,"
@@ -16,10 +16,11 @@ func shifted16BitConstants(out [64]uint64) {
1616 out [2 ] = 0xFFFF000000000000
1717 // ppc64x: "MOVD\t[$]65535", "SLD\t[$]44,"
1818 out [3 ] = 0x0FFFF00000000000
19+ return
1920}
2021
2122// A contiguous set of 1 bits, potentially wrapping.
22- func contiguousMaskConstants (out [64 ]uint64 ) {
23+ func contiguousMaskConstants () ( out [64 ]uint64 ) {
2324 // ppc64x: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]44, [$]63,"
2425 out [0 ] = 0xFFFFF00000000001
2526 // ppc64x: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]43, [$]63,"
@@ -30,4 +31,5 @@ func contiguousMaskConstants(out [64]uint64) {
3031 // ppc64x/power9: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]33, [$]63,"
3132 // ppc64x/power10: "MOVD\t[$]-8589934591,"
3233 out [3 ] = 0xFFFFFFFE00000001
34+ return
3335}
0 commit comments