]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr92860.c
1 /* PR tree-optimization/92860. */
2 /* Testcase derived from 20111227-1.c to ensure that REE is combining
3 redundant zero extends with zero extend to wider mode. */
4 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
5 /* { dg-options "-fdump-rtl-ree" } */
7 extern void abort (void);
15 __attribute__ ((optimize("-O2")))
20 void __attribute__((noinline
,noclone
))
23 if (t
== 2 && s
!= 0xff)
25 if (t
== 1 && i
!= 0xff)
27 if (t
== 0 && l
!= 0xff)
31 void __attribute__((noinline
,noclone
))
32 foo (unsigned char *a
, int t
)
37 s
= (unsigned short) r
;
41 l
= (unsigned long) r
;
53 /* { dg-final { scan-rtl-dump-not "Elimination opportunities" "ree" } } */