tvl-depot/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-bitor.nix
William Carroll 031ca653a3 feat(tvix/eval): Support builtins.bitOr
Bitwise `or` on integers.

Change-Id: I45b0897331d1a9b6840f9d0feedcf10acc67fcec
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6549
Autosubmit: wpcarro <wpcarro@gmail.com>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-09-15 21:47:09 +00:00

10 lines
256 B
Nix

[
(builtins.bitOr 0 0)
(builtins.bitOr 1 0)
(builtins.bitOr 0 1)
(builtins.bitOr 1 1)
(builtins.bitOr 8 8)
(builtins.bitOr 8 (builtins.add 4 4))
(builtins.bitOr (builtins.add 4 4) 8)
(builtins.bitOr (builtins.add 4 4) (builtins.add 4 4))
]