]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark BS{F,R}L as clobbering flags
authorKeith Randall <keithr@alum.mit.edu>
Fri, 8 Jun 2018 00:25:28 +0000 (17:25 -0700)
committerKeith Randall <khr@golang.org>
Fri, 8 Jun 2018 04:22:01 +0000 (04:22 +0000)
commit29e5a81e28c633aa8d1062ce9f3749e9a8f040da
treea7188e25c49c3cac9544d485be36176edb83e2d1
parent1425412f38e8a0e7ea9f6d67a8cf2d97e567f6b4
cmd/compile: mark BS{F,R}L as clobbering flags

Turns out it doesn't currently matter, as these ops are always issued
together with a BTSL which does clobber flags. So I can't write a test
that currently fails. But better to be future-proof.

BS{F,R}Q generates flags, so it doesn't need to be marked as clobbering.

Change-Id: I70daea154023fd435fac696bf3a384803c647cd3
Reviewed-on: https://go-review.googlesource.com/117375
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go