Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mypyc] Add 'bit' primitive type and streamline branching #9606

Merged
merged 13 commits into from
Oct 17, 2020
Prev Previous commit
Next Next commit
Change int64 -> native_int in tests
  • Loading branch information
JukkaL committed Oct 17, 2020
commit a1b8ba2c074347313b20220f2900c109d5fc51e0
32 changes: 16 additions & 16 deletions mypyc/test-data/analysis.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def f(a: int) -> None:
def f(a):
a, x :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2, r3, r4 :: bit
y, z :: int
L0:
Expand Down Expand Up @@ -69,7 +69,7 @@ def f(a: int) -> int:
def f(a):
a, x :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2, r3, r4 :: bit
L0:
x = 2
Expand Down Expand Up @@ -165,7 +165,7 @@ def f(a: int) -> None:
def f(a):
a :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2, r3, r4 :: bit
y, x :: int
L0:
Expand Down Expand Up @@ -232,9 +232,9 @@ def f(n: int) -> None:
def f(n):
n :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2 :: bit
r3 :: int64
r3 :: native_int
r4, r5, r6, r7 :: bit
r8, m :: int
L0:
Expand Down Expand Up @@ -301,14 +301,14 @@ def f(n: int) -> None:
def f(n):
n, x, y :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2 :: bit
r3 :: int64
r3 :: native_int
r4, r5, r6, r7 :: bit
r8 :: bool
r9 :: int64
r9 :: native_int
r10 :: bit
r11 :: int64
r11 :: native_int
r12, r13, r14, r15 :: bit
L0:
x = 2
Expand Down Expand Up @@ -447,14 +447,14 @@ def f(a: int) -> None:
def f(a):
a :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2 :: bit
r3 :: int64
r3 :: native_int
r4, r5, r6, r7 :: bit
r8 :: bool
r9 :: int64
r9 :: native_int
r10 :: bit
r11 :: int64
r11 :: native_int
r12, r13, r14, r15 :: bit
y, x :: int
L0:
Expand Down Expand Up @@ -581,7 +581,7 @@ def f(a: int) -> int:
def f(a):
a :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2, r3, r4 :: bit
x :: int
L0:
Expand Down Expand Up @@ -639,9 +639,9 @@ def f(a: int) -> int:
def f(a):
a, sum, i :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2 :: bit
r3 :: int64
r3 :: native_int
r4, r5, r6, r7, r8 :: bit
r9, r10 :: int
L0:
Expand Down
4 changes: 2 additions & 2 deletions mypyc/test-data/exceptions.test
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def sum(a, l):
a :: list
l, sum, i :: int
r0 :: bool
r1 :: int64
r1 :: native_int
r2 :: bit
r3 :: int64
r3 :: native_int
r4, r5, r6, r7 :: bit
r8 :: object
r9, r10, r11, r12 :: int
Expand Down
Loading