On Tue, Sep 5, 2023 at 9:24 PM Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp> wrote: > On 2023/09/06 8:01, Max Filippov wrote: > > On Tue, Sep 5, 2023 at 2:29 AM Takayuki 'January June' Suwa > > <jjsuwa_sys3...@yahoo.co.jp> wrote: > >> ;; after (prereq. TARGET_MINMAX) > >> test0: > >> movi.n a9, 1 > >> minu a2, a2, a9 > >> xor a2, a2, a9 > >> ret.n > > > > ISTM that test0 could be done with movnez in the same three instructions: > > > > movi a9, 1 > > movnez a2, a9, a2 > > xor a2, a2, a9 > > Unfortunately, the MOV[EQ/NE]Z machine instruction can only be used > to implement the functionality if the input and output physical registers > are the same (a2 in the example).
Oh yeah, you're right, I missed that. -- Thanks. -- Max