gcc.target/i386/pr78904-4a.c: Compile with -mtune=generic

commit e95395926a
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Thu Jun 18 20:12:48 2020 +0200

    i386: Fix mode of ZERO_EXTRACT RTXes, remove ext_register_operand predicate.

caused

FAIL: gcc.target/i386/pr78904-4a.c scan-assembler [ \t]movb[\t ]+%.h, t

when compiled with --target_board='unix{-m32\ -march=cascadelake}'.  With
-mtune=generic:

	movzwl	4(%esp), %edx
	movl	8(%esp), %eax
	movb	%dh, t(%eax)
	ret

With -mtune=cascadelake:

	movzbl	5(%esp), %edx
	movl	8(%esp), %eax
	movb	%dl, t(%eax)
	ret

Add -mtune=generic for --target_board='unix{-m32\ -march=cascadelake}'.

	* gcc.target/i386/pr78904-4a.c: Compile with -mtune=generic.
This commit is contained in:
H.J. Lu 2020-09-15 07:21:58 -07:00
parent bab5813816
commit 9e89fa0e2d

View file

@ -1,7 +1,7 @@
/* PR target/78904 */
/* { dg-do compile } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -masm=att" } */
/* { dg-options "-O2 -masm=att -mtune=generic" } */
typedef __SIZE_TYPE__ size_t;