aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz/encode.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ifuzz/encode.go')
-rw-r--r--pkg/ifuzz/encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ifuzz/encode.go b/pkg/ifuzz/encode.go
index 799def63a..0b3732aa7 100644
--- a/pkg/ifuzz/encode.go
+++ b/pkg/ifuzz/encode.go
@@ -76,7 +76,7 @@ func (insn *Insn) Encode(cfg *Config, r *rand.Rand) []byte {
rex = byte(0x40 | r.Intn(16))
if insn.Rexw == 1 {
rex |= 1 << 3
- } else if insn.Rexw == 1 {
+ } else {
rex &^= 1 << 3
}
rexR = rex&0x4 != 0