diff options
author | Richard Henderson <rth@twiddle.net> | 2013-01-29 13:38:43 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-02-19 23:05:18 -0800 |
commit | 436ff2d227588d42970c4f0ed1cdfcb87c872fba (patch) | |
tree | 490749eb20535f821b9937d8fb25d7a38faad2a9 /target-i386/cc_helper.c | |
parent | 321c535105a182501b888f095f7ec4dbb5f3f6ae (diff) |
target-i386: Add CC_OP_CLR
Special case xor with self. We need not even store the known
zero into cc_src.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/cc_helper.c')
-rw-r--r-- | target-i386/cc_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/cc_helper.c b/target-i386/cc_helper.c index 6cf57a76b3..9daa1a06b8 100644 --- a/target-i386/cc_helper.c +++ b/target-i386/cc_helper.c @@ -102,6 +102,8 @@ target_ulong helper_cc_compute_all(target_ulong dst, target_ulong src1, case CC_OP_EFLAGS: return src1; + case CC_OP_CLR: + return CC_Z; case CC_OP_MULB: return compute_all_mulb(dst, src1); @@ -228,6 +230,7 @@ target_ulong helper_cc_compute_c(target_ulong dst, target_ulong src1, case CC_OP_LOGICW: case CC_OP_LOGICL: case CC_OP_LOGICQ: + case CC_OP_CLR: return 0; case CC_OP_EFLAGS: |