• Lynn Boger's avatar
    cmd/compile: add rotates to PPC64.rules · 9248ff46
    Lynn Boger authored
    This updates PPC64.rules to include rules to generate rotates
    for ADD, OR, XOR operators that combine two opposite shifts
    that sum to 32 or 64.
    
    To support this change opcodes for ROTL and ROTLW were added to
    be used like the rotldi and rotlwi extended mnemonics.
    
    This provides the following improvement in sha3:
    
    BenchmarkPermutationFunction-8     302.83       376.40       1.24x
    BenchmarkSha3_512_MTU-8            98.64        121.92       1.24x
    BenchmarkSha3_384_MTU-8            136.80       168.30       1.23x
    BenchmarkSha3_256_MTU-8            169.21       211.29       1.25x
    BenchmarkSha3_224_MTU-8            179.76       221.19       1.23x
    BenchmarkShake128_MTU-8            212.87       263.23       1.24x
    BenchmarkShake256_MTU-8            196.62       245.60       1.25x
    BenchmarkShake256_16x-8            163.57       194.37       1.19x
    BenchmarkShake256_1MiB-8           199.02       248.74       1.25x
    BenchmarkSha3_512_1MiB-8           106.55       133.13       1.25x
    
    Fixes #20030
    
    Change-Id: I484c56f48395d32f53ff3ecb3ac6cb8191cfee44
    Reviewed-on: https://go-review.googlesource.com/40992
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    Reviewed-by: 's avatarMichael Munday <munday@ca.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    9248ff46
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
cmd Loading commit data...
compress Loading commit data...
container Loading commit data...
context Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
internal Loading commit data...
io Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
os Loading commit data...
path Loading commit data...
plugin Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...
vendor/golang_org/x Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
bootstrap.bash Loading commit data...
buildall.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
cmp.bash Loading commit data...
iostest.bash Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
naclmake.bash Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...