7
7
package codegen
8
8
9
9
// A uint16 or sint16 constant shifted left.
10
- func shifted16BitConstants (out [64 ]uint64 ) {
10
+ func shifted16BitConstants () ( out [64 ]uint64 ) {
11
11
// ppc64x: "MOVD\t[$]8193,", "SLD\t[$]27,"
12
12
out [0 ] = 0x0000010008000000
13
13
// ppc64x: "MOVD\t[$]-32767", "SLD\t[$]26,"
@@ -16,10 +16,11 @@ func shifted16BitConstants(out [64]uint64) {
16
16
out [2 ] = 0xFFFF000000000000
17
17
// ppc64x: "MOVD\t[$]65535", "SLD\t[$]44,"
18
18
out [3 ] = 0x0FFFF00000000000
19
+ return
19
20
}
20
21
21
22
// A contiguous set of 1 bits, potentially wrapping.
22
- func contiguousMaskConstants (out [64 ]uint64 ) {
23
+ func contiguousMaskConstants () ( out [64 ]uint64 ) {
23
24
// ppc64x: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]44, [$]63,"
24
25
out [0 ] = 0xFFFFF00000000001
25
26
// ppc64x: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]43, [$]63,"
@@ -30,4 +31,5 @@ func contiguousMaskConstants(out [64]uint64) {
30
31
// ppc64x/power9: "MOVD\t[$]-1", "RLDC\tR[0-9]+, [$]33, [$]63,"
31
32
// ppc64x/power10: "MOVD\t[$]-8589934591,"
32
33
out [3 ] = 0xFFFFFFFE00000001
34
+ return
33
35
}
0 commit comments