]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: test non-constant shifts
authorKeith Randall <khr@golang.org>
Tue, 31 May 2016 20:48:29 +0000 (13:48 -0700)
committerKeith Randall <khr@golang.org>
Wed, 1 Jun 2016 00:06:00 +0000 (00:06 +0000)
commite106122200032cdf4f0a993cdd89c7531aaf8d75
treea5712cd8f5e3d59497fffdc5232b10dba100d55e
parent3d81d4adc9419e2fcba5888ab074d3f17eb5eb03
cmd/compile: test non-constant shifts

Test all the weird shifts, like int8 shifted right by uint16.
Increases coverage for shift lowerings in AMD64.rules.

Change-Id: I066fe6ad6bfc05253a8d6a2ee17ff244d3a7652e
Reviewed-on: https://go-review.googlesource.com/23585
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Todd Neal <todd@tneal.org>
src/cmd/compile/internal/gc/shift_test.go