From f22e2350c95e9052e990b2351c3c2b0af810e381 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 9 May 2023 21:30:09 -0400 Subject: [PATCH] Refined deMorgan's tests to be more explicit with regexp --- test/codegen/logic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/codegen/logic.go b/test/codegen/logic.go index a00bbb0600..ac33f91dad 100644 --- a/test/codegen/logic.go +++ b/test/codegen/logic.go @@ -28,14 +28,14 @@ func ornot(x, y int) int { // Verify that (OR (NOT x) (NOT y)) rewrites to (NOT (AND x y)) func orDemorgans(x, y int) int { - // amd64:"AND" + // amd64:"AND",-"OR" z := ^x | ^y return z } // Verify that (AND (NOT x) (NOT y)) rewrites to (NOT (OR x y)) func andDemorgans(x, y int) int { - // amd64:"OR" + // amd64:"OR",-"AND" z := ^x & ^y return z }