diff options
author | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-12-21 23:46:16 +0100 |
---|---|---|
committer | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-12-21 23:46:16 +0100 |
commit | 24e3c4c89ec9d309d4474280dfab3d6f8421ea7f (patch) | |
tree | 48970d702c710cafb3f5200d1239f9e05a54e38c /test | |
parent | f629c98fe20a4f322e96b138ded2fb88cb843531 (diff) | |
download | go-24e3c4c89ec9d309d4474280dfab3d6f8421ea7f.tar.gz |
cmd/8g: introduce temporaries in byte multiplication.
Also restore the smallintconst case for binary ops.
Fixes issue 3835.
R=daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/6999043
Diffstat (limited to 'test')
-rw-r--r-- | test/torture.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/torture.go b/test/torture.go index d14d78fd1..bbf6d347d 100644 --- a/test/torture.go +++ b/test/torture.go @@ -333,3 +333,7 @@ func ChainDivConst(a int) int { 17 / 17 / 17 / 17 / 17 / 17 / 17 / 17 } + +func ChainMulBytes(a, b, c byte) byte { + return a*(a*(a*(a*(a*(a*(a*(a*(a*b+c)+c)+c)+c)+c)+c)+c)+c) + c +} |