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