qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 20/24] tcg/i386: Add cf parameter to tcg_out_cmp


From: Richard Henderson
Subject: Re: [PATCH 20/24] tcg/i386: Add cf parameter to tcg_out_cmp
Date: Sat, 12 Aug 2023 10:21:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 8/11/23 08:06, Richard Henderson wrote:
Basically, test sets SZ flags, where cmp sets SZCO.  I want to add an optimizaton using C, so "cmp 0,x" should not be silently replaced by "test x,x".

This patch can be dropped entirely.

TEST clears C (which cmp vs 0 would also do). I was mis-remembering INC/DEC which leave C unchanged and thus uninitialized wrt the current operation.


r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]