From 8661006ef041d4b39fa68a82d5f01e327cf7ad20 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 16 Jan 2024 09:25:29 -0400 Subject: [PATCH] agx: add some more bitop tests Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/test/test-optimizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/compiler/test/test-optimizer.cpp b/src/asahi/compiler/test/test-optimizer.cpp index 0b99e1dd3cb..543f43f2d85 100644 --- a/src/asahi/compiler/test/test-optimizer.cpp +++ b/src/asahi/compiler/test/test-optimizer.cpp @@ -163,6 +163,10 @@ TEST_F(Optimizer, FusedNot) CASE32(agx_xor_to(b, out, wx, agx_not(b, wy)), agx_xnor_to(b, out, wx, wy)); CASE32(agx_xor_to(b, out, wy, agx_not(b, wx)), agx_xnor_to(b, out, wy, wx)); + + CASE32(agx_and_to(b, out, agx_not(b, wx), wy), agx_andn1_to(b, out, wx, wy)); + + CASE32(agx_or_to(b, out, wx, agx_not(b, wy)), agx_orn2_to(b, out, wx, wy)); } TEST_F(Optimizer, FmulFsatF2F16)