3 // Copyright 2020 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 // This file contains codegen tests related to boolean simplifications/optimizations.
11 func convertNeq0B(x uint8, c bool) bool {
12 // amd64:"ANDL\t[$]1",-"SETNE"
17 func convertNeq0W(x uint16, c bool) bool {
18 // amd64:"ANDL\t[$]1",-"SETNE"
23 func convertNeq0L(x uint32, c bool) bool {
24 // amd64:"ANDL\t[$]1",-"SETB"
29 func convertNeq0Q(x uint64, c bool) bool {
30 // amd64:"ANDL\t[$]1",-"SETB"