> -----Original Message----- > From: Richard Henderson <richard.hender...@linaro.org> > Sent: Thursday, February 10, 2022 7:03 PM > To: Taylor Simpson <tsimp...@quicinc.com>; qemu-devel@nongnu.org > Cc: f4...@amsat.org; a...@rev.ng; Brian Cain <bc...@quicinc.com>; Michael > Lambert <mlamb...@quicinc.com> > 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