diff options
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/bits.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/codegen/bits.go b/test/codegen/bits.go index 95e0ed85e4..7974f471fc 100644 --- a/test/codegen/bits.go +++ b/test/codegen/bits.go @@ -332,6 +332,7 @@ func op_eon(x, y, z uint32, a []uint32, n, m uint64) uint64 { func op_orn(x, y uint32) uint32 { // arm64:`ORN\t`,-`ORR` + // loong64:"ORN"\t,-"OR\t" return x | ^y } @@ -344,6 +345,11 @@ func op_nor(x int64, a []int64) { a[2] = ^(0x12 | 0x34) } +func op_andn(x, y uint32) uint32 { + // loong64:"ANDN\t",-"AND\t" + return x &^ y +} + // check bitsets func bitSetPowerOf2Test(x int) bool { // amd64:"BTL\t[$]3" |
