aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-09-20 10:40:05 +0200
committerHenrik Nord <[email protected]>2011-09-20 10:40:11 +0200
commitf6f95cd980d515e730c64dde59997082d9979a53 (patch)
tree4124f7004a77f4315b647c17b3372c50bcbd3930 /lib
parent1f7377287bb8563a0fbf9eff1478462fb86618f0 (diff)
parentba14137774a64da076b9cf0d98e0e6f2711a74e4 (diff)
downloadotp-f6f95cd980d515e730c64dde59997082d9979a53.tar.gz
otp-f6f95cd980d515e730c64dde59997082d9979a53.tar.bz2
otp-f6f95cd980d515e730c64dde59997082d9979a53.zip
Merge branch 'pg/fix-hipe-bs_get_float2' into dev
* pg/fix-hipe-bs_get_float2: Fix bug with binary pattern matching of floats of variable size OTP-9556
Diffstat (limited to 'lib')
-rw-r--r--lib/hipe/icode/hipe_beam_to_icode.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/icode/hipe_beam_to_icode.erl b/lib/hipe/icode/hipe_beam_to_icode.erl
index d7eb035551..cfed410240 100644
--- a/lib/hipe/icode/hipe_beam_to_icode.erl
+++ b/lib/hipe/icode/hipe_beam_to_icode.erl
@@ -720,7 +720,7 @@ trans_fun([{test,bs_get_float2,{f,Lbl},[Ms,_Live,Size,Unit,{field_flags,Flags0},
?EXIT({bad_bs_size_constant,Size});
BitReg ->
Bits = mk_var(BitReg),
- {{bs_get_float,Unit,Flags}, [Bits,MsVar]}
+ {{bs_get_float,Unit,Flags}, [MsVar,Bits]}
end,
trans_op_call({hipe_bs_primop,Name}, Lbl, Args, [Dst,MsVar], Env, Instructions);
trans_fun([{test,bs_get_integer2,{f,Lbl},[Ms,_Live,Size,Unit,{field_flags,Flags0},X]}|