Commit 38bbee15 authored by Matthias Braun's avatar Matthias Braun
Browse files

'fix' comment

[r20478]
parent 36ccf43c
...@@ -4857,10 +4857,10 @@ static ir_node *transform_node_bitop_shift(ir_node *n) { ...@@ -4857,10 +4857,10 @@ static ir_node *transform_node_bitop_shift(ir_node *n) {
/** /**
* normalisation: * normalisation:
* (x << c1) >> c2 <=> x>>(c2-c1) & (-1>>c2) * (x << c1) >> c2 <=> x OP (c2-c1) & ((-1 << c1) >> c2)
* also: * also:
* if c2 > c1: x << (c2-c1) * (x >> c1) << c2 <=> x OP (c2-c1) & ((-1 >> c1) << c2)
* (x >>s c2) << c1 <=> x>>s(c2-c1) & (-1>>c2) * (also with x >>s c1 when c1>=c2)
*/ */
static ir_node *transform_node_shl_shr(ir_node *n) { static ir_node *transform_node_shl_shr(ir_node *n) {
ir_node *left; ir_node *left;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment