> -----Original Message----- > From: Richard Henderson <[email protected]> > Sent: Thursday, February 10, 2022 7:03 PM > To: Taylor Simpson <[email protected]>; [email protected] > Cc: [email protected]; [email protected]; Brian Cain <[email protected]>; Michael > Lambert <[email protected]> > Subject: Re: [PATCH v2 06/12] Hexagon (tests/tcg/hexagon) test instructions > that might set bits in USR > > On 2/10/22 13:15, Taylor Simpson wrote: > > +#define CLEAR_USRBITS \ > > + "r2 = usr\n\t" \ > > + "r2 = clrbit(r2, #0)\n\t" \ > > + "r2 = clrbit(r2, #1)\n\t" \ > > + "r2 = clrbit(r2, #2)\n\t" \ > > + "r2 = clrbit(r2, #3)\n\t" \ > > + "r2 = clrbit(r2, #4)\n\t" \ > > + "r2 = clrbit(r2, #5)\n\t" \ > > + "usr = r2\n\t" > > It's just a test case, so it doesn't really matter, but > > r2 = and(r2, #~0x3f)
Our assembler won't parse the ~. So, I'll have to go with 0xfffffc0. Taylor
