Re: V2 [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-14 Thread Uros Bizjak
On Thu, Mar 14, 2019 at 9:22 AM H.J. Lu wrote: > > > We can't use the %X5 since %X5 is used on operands. > > > > So, please introduce some other modifier ("X" was not to be taken > > literally, but *some* letter). Why are you overloading 'P'? > > Here is the updated patch with the 'M' modifier. >

Re: V2 [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-14 Thread H.J. Lu
On Mon, Mar 4, 2019 at 10:09 PM Uros Bizjak wrote: > > On Mon, Mar 4, 2019 at 2:54 PM H.J. Lu wrote: > > > > On Sun, Mar 03, 2019 at 10:34:29PM +0100, Uros Bizjak wrote: > > > On Sun, Mar 3, 2019 at 10:18 PM H.J. Lu wrote: > > > > > > > > On Sun, Mar 3, 2019 at 9:27 AM Uros Bizjak wrote: > > >

Re: V2 [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-04 Thread Uros Bizjak
On Mon, Mar 4, 2019 at 2:54 PM H.J. Lu wrote: > > On Sun, Mar 03, 2019 at 10:34:29PM +0100, Uros Bizjak wrote: > > On Sun, Mar 3, 2019 at 10:18 PM H.J. Lu wrote: > > > > > > On Sun, Mar 3, 2019 at 9:27 AM Uros Bizjak wrote: > > > > > > > > On Thu, Feb 28, 2019 at 8:10 PM H.J. Lu wrote: > > > >

V2 [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-04 Thread H.J. Lu
On Sun, Mar 03, 2019 at 10:34:29PM +0100, Uros Bizjak wrote: > On Sun, Mar 3, 2019 at 10:18 PM H.J. Lu wrote: > > > > On Sun, Mar 3, 2019 at 9:27 AM Uros Bizjak wrote: > > > > > > On Thu, Feb 28, 2019 at 8:10 PM H.J. Lu wrote: > > > > > > > > 32-bit indices in VSIB address are sign-extended to 6

Re: [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-03 Thread Uros Bizjak
On Sun, Mar 3, 2019 at 10:18 PM H.J. Lu wrote: > > On Sun, Mar 3, 2019 at 9:27 AM Uros Bizjak wrote: > > > > On Thu, Feb 28, 2019 at 8:10 PM H.J. Lu wrote: > > > > > > 32-bit indices in VSIB address are sign-extended to 64 bits. In x32, > > > when 32-bit indices are used as addresses, like in >

Re: [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-03 Thread H.J. Lu
On Sun, Mar 3, 2019 at 9:27 AM Uros Bizjak wrote: > > On Thu, Feb 28, 2019 at 8:10 PM H.J. Lu wrote: > > > > 32-bit indices in VSIB address are sign-extended to 64 bits. In x32, > > when 32-bit indices are used as addresses, like in > > > > vgatherdps %ymm7, 0(,%ymm9,1), %ymm6 > > > > 32-bit ind

Re: [PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-03-03 Thread Uros Bizjak
On Thu, Feb 28, 2019 at 8:10 PM H.J. Lu wrote: > > 32-bit indices in VSIB address are sign-extended to 64 bits. In x32, > when 32-bit indices are used as addresses, like in > > vgatherdps %ymm7, 0(,%ymm9,1), %ymm6 > > 32-bit indices, 0xf7fa3010, is sign-extended to 0xf7fa3010 which > is i

[PATCH] x32: Add addr32 prefix to UNSPEC_VSIBADDR instructions

2019-02-28 Thread H.J. Lu
32-bit indices in VSIB address are sign-extended to 64 bits. In x32, when 32-bit indices are used as addresses, like in vgatherdps %ymm7, 0(,%ymm9,1), %ymm6 32-bit indices, 0xf7fa3010, is sign-extended to 0xf7fa3010 which is invalid address. Add addr32 prefix to UNSPEC_VSIBADDR instruct