]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules
cmd/compile: merge zero constant ISEL in PPC64 lateLower pass
[gostls13.git] / src / cmd / compile / internal / ssa / _gen / PPC64latelower.rules
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // This file contains rules used by the laterLower pass.
6
7 // Simplify ISEL x $0 z into ISELZ
8 (ISEL [a] x (MOVDconst [0]) z) => (ISELZ [a] x z)
9 // Simplify ISEL $0 y z into ISELZ by inverting comparison and reversing arguments.
10 (ISEL [a] (MOVDconst [0]) y z) => (ISELZ [a^0x4] y z)