OSDN Git Service

PR middle-end/48973
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 May 2011 10:24:47 +0000 (10:24 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 May 2011 10:24:47 +0000 (10:24 +0000)
commitec0109fe82032e869880728da5b026a89c64473f
tree1e3c071bf4d822ada218bd776de0cb591f3d133b
parent0d4f12be6d102ff8ed64b384fd6d29cffd3a8934
PR middle-end/48973
* expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
failed and the comparison has a single bit signed type, use
constm1_rtx instead of const1_rtx for true value.
(do_store_flag): If ops->type is single bit signed type, disable
signel bit test optimization and pass -1 instead of 1 as last
parameter to emit_store_flag_force.

* gcc.c-torture/execute/pr48973-1.c: New test.
* gcc.c-torture/execute/pr48973-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174063 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr48973-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr48973-2.c [new file with mode: 0644]