Skip to content

Commit

Permalink
Merge branch 'pg/fix-hipe-bs_get_float2' into dev
Browse files Browse the repository at this point in the history
* pg/fix-hipe-bs_get_float2:
  Fix bug with binary pattern matching of floats of variable size

OTP-9556
  • Loading branch information
proxyles committed Sep 20, 2011
2 parents 1f73772 + ba14137 commit f6f95cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hipe/icode/hipe_beam_to_icode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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]}|
Expand Down

0 comments on commit f6f95cd

Please sign in to comment.