Skip to content

Commit

Permalink
add TODO case to test_mod_congruence (tinygrad#7925)
Browse files Browse the repository at this point in the history
same alu count but better bounds
  • Loading branch information
chenyuxyz authored Nov 27, 2024
1 parent 57262c8 commit 988d649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/test_uop_symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ def test_mod_to_sub(self):
def test_mod_congruence(self):
self.helper_test_variable((3+3*Variable("a",0,3))%4, 0, 3, "((a*-1)+3)")
self.helper_test_variable((17+13*Variable("a",0,3))%18, 2, 17, "((a*-5)+17)")
# TODO: 2, 11, (a%2)*9+2
self.helper_test_variable((2+9*Variable("a",0,3))%18, 0, 17, "(((a*9)+2)%18)")

def test_mod_congruence_mul_add(self):
self.helper_test_variable((6*(Variable("a", 0, 2)+1))%9, 0, 6, "((a*-3)+6)")
Expand Down

0 comments on commit 988d649

Please sign in to comment.