Commit 8ddd633a by Roger Sayle Committed by Roger Sayle

jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR of unsigned types…

jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR of unsigned types using iushr and lushr JVM bytecodes.


	* jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR
	of unsigned types using iushr and lushr JVM bytecodes.

From-SVN: r94560
parent ca58f2bc
2005-02-01 Roger Sayle <roger@eyesopen.com>
* jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR
of unsigned types using iushr and lushr JVM bytecodes.
2005-02-02 Ranjit Mathew <rmathew@hotmail.com> 2005-02-02 Ranjit Mathew <rmathew@hotmail.com>
PR java/19738 PR java/19738
......
...@@ -2146,7 +2146,9 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state) ...@@ -2146,7 +2146,9 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state)
jopcode = OPCODE_irem; jopcode = OPCODE_irem;
goto binop; goto binop;
case LSHIFT_EXPR: jopcode = OPCODE_ishl; goto binop; case LSHIFT_EXPR: jopcode = OPCODE_ishl; goto binop;
case RSHIFT_EXPR: jopcode = OPCODE_ishr; goto binop; case RSHIFT_EXPR:
jopcode = TYPE_UNSIGNED (type) ? OPCODE_iushr : OPCODE_ishr;
goto binop;
case URSHIFT_EXPR: jopcode = OPCODE_iushr; goto binop; case URSHIFT_EXPR: jopcode = OPCODE_iushr; goto binop;
case TRUTH_AND_EXPR: case TRUTH_AND_EXPR:
case BIT_AND_EXPR: jopcode = OPCODE_iand; goto binop; case BIT_AND_EXPR: jopcode = OPCODE_iand; goto binop;
......
Markdown is supported
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