aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/ops.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-03-07 07:25:32 +0100
committerBjörn Gustavsson <[email protected]>2019-03-19 16:01:59 +0100
commit96730efed3b16bf20149d8716d17486217e51e6e (patch)
treead57f89b3ecf4e8905188a9b91ee3dc226a618b1 /erts/emulator/beam/ops.tab
parent58d0fdd849da6e4f6a13d26ea32291c21e125055 (diff)
downloadotp-96730efed3b16bf20149d8716d17486217e51e6e.tar.gz
otp-96730efed3b16bf20149d8716d17486217e51e6e.tar.bz2
otp-96730efed3b16bf20149d8716d17486217e51e6e.zip
Combine is_tuple with is_tagged_tuple
Diffstat (limited to 'erts/emulator/beam/ops.tab')
-rw-r--r--erts/emulator/beam/ops.tab5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab
index da5364183c..70a6049c75 100644
--- a/erts/emulator/beam/ops.tab
+++ b/erts/emulator/beam/ops.tab
@@ -629,6 +629,11 @@ test_arity f? xy A
test_arity_get_tuple_element f? x A P x
+is_tuple NotTupleFail Tuple=x | is_tagged_tuple WrongRecordFail Tuple Arity Atom => \
+ is_tagged_tuple_ff NotTupleFail WrongRecordFail Tuple Arity Atom
+
+is_tagged_tuple_ff f? f? rx A a
+
get_tuple_element Reg=x P1 D1=x | get_tuple_element Reg=x P2 D2=x | \
get_tuple_element Reg=x P3 D3=x | \
succ(P1, P2) | succ(P2, P3) | \