[CRIU] [PATCH] criu tests: It's necessary to align data to use MOVAPS command

Andrew Vagin avagin at gmail.com
Tue Aug 11 08:49:17 PDT 2015


Acked-by: Andrew Vagin <avagin at odin.com>

On Tue, Aug 11, 2015 at 07:07:24PM +0400, vkonyashkin wrote:
> It 's necessary to align date, because the operand of movaps command
> must be aligned on a 16-byte (128-bit version) boundary or a general-protection
> exception (#GP) will be generated.
> 
> Signed-off-by: vkonyashkin <vkonyashkin at parallels.com>
> ---
>  test/zdtm/live/static/sse00.c | 3 ++-
>  test/zdtm/live/static/sse20.c | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/test/zdtm/live/static/sse00.c b/test/zdtm/live/static/sse00.c
> index d76d07a..0c04aba 100644
> --- a/test/zdtm/live/static/sse00.c
> +++ b/test/zdtm/live/static/sse00.c
> @@ -52,7 +52,8 @@ int main(int argc, char **argv)
>  {
>  #if defined(__i386__) || defined(__x86_64__)
>  	float input[8] __attribute__((aligned(16)));
> -	float res1[8], res2[8];
> +	float res1[8] __attribute__((aligned(16)));
> +	float res2[8] __attribute__((aligned(16)));
>  	int i;
>  #endif
>  
> diff --git a/test/zdtm/live/static/sse20.c b/test/zdtm/live/static/sse20.c
> index 1597d07..912528b 100644
> --- a/test/zdtm/live/static/sse20.c
> +++ b/test/zdtm/live/static/sse20.c
> @@ -52,7 +52,8 @@ int main(int argc, char **argv)
>  {
>  #if defined(__i386__) || defined(__x86_64__)
>  	double input[4] __attribute__((aligned(16)));
> -	double res1[4], res2[4];
> +	double res1[4] __attribute__((aligned(16)));
> +	double res2[4] __attribute__((aligned(16)));
>  	int i;
>  #endif
>  
> -- 
> 1.8.1.4
> 


More information about the CRIU mailing list