aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-09-26 14:11:09 +0200
committerBjörn Gustavsson <[email protected]>2018-09-28 14:33:52 +0200
commitb6f06edde9645bf96a4bc7ebb1e0965fc8b177d6 (patch)
tree29fc947e4015f866de4309d53e3de968993eea7a /lib/compiler/test
parent7d941c529dc9db016af30cdace2df089d1648dbf (diff)
downloadotp-b6f06edde9645bf96a4bc7ebb1e0965fc8b177d6.tar.gz
otp-b6f06edde9645bf96a4bc7ebb1e0965fc8b177d6.tar.bz2
otp-b6f06edde9645bf96a4bc7ebb1e0965fc8b177d6.zip
Fix code generation of binary instructions with the r21 option
OTP 22 extends the binary instructions to support a Y register destination. When giving an option to compile for an earlier release, make sure that binary instructions don't use a Y register destination, by rewriting the binary instructions to use an X register destination and adding a `move` instruction to move the value to the Y register.
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/test/Makefile b/lib/compiler/test/Makefile
index e56594f344..40428b7f2d 100644
--- a/lib/compiler/test/Makefile
+++ b/lib/compiler/test/Makefile
@@ -98,6 +98,7 @@ INLINE= \
record
R21= \
+ bs_construct \
bs_match
CORE_MODULES = \