The MASM Forum

General => The Campus => Topic started by: Gunther on November 26, 2012, 05:14:35 AM

Title: Usage of AVX in 32 bit code
Post by: Gunther on November 26, 2012, 05:14:35 AM
I've Windows XP mode as an VM installed on my Win7. It works well. But there is one problem. By testing the support of the AVX instructions, such an easy instruction like:

        vmovaps    ymm0, [ecx]

is generating a GPF. The data array is aligned by 32, so what could be the reason? Any ideas?

Gunther
Title: Re: Usage of AVX in 32 bit code
Post by: qWord on November 26, 2012, 05:35:22 AM
Windows XP does not support AVX instructions. Also, it seems that Virtual PC only supports up to SSE2.
Title: Re: Usage of AVX in 32 bit code
Post by: Gunther on November 26, 2012, 05:54:59 AM
Quote from: qWord on November 26, 2012, 05:35:22 AM
Windows XP does not support AVX instructions. Also, it seems that Virtual PC only supports up to SSE2.

That could be the reason. Is there a better alternative?

Gunther
Title: Re: Usage of AVX in 32 bit code
Post by: dedndave on November 26, 2012, 06:09:39 AM
1) don't use AVX instructions
or
2) use an environment  that supports them

:biggrin:
Title: Re: Usage of AVX in 32 bit code
Post by: Gunther on November 26, 2012, 07:26:12 PM
Dave,

Quote from: dedndave on November 26, 2012, 06:09:39 AM
1) don't use AVX instructions
or
2) use an environment  that supports them

:biggrin:

Good proposal.

Gunther