On 64-bit x86, exponents truncate to 32 bits:
sage: K.<x,y> = QQ[]
sage: ((x^12345)^54321)^12345
x^2065457633
sage: 12345*54321*12345
8278467437025
sage: (12345*54321*12345) % 2^32
2065457633
On 32-bit x86, exponents truncate to 16 bits, and overflow from one variable to another (!!!):
sage: K.<x,y> = QQ[]
sage: (x^12345)^54321
x^28393*y^10232
sage: (12345*54321) // 2^16
10232
sage: (12345*54321) % 2^16
28393
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/2957