comparison gcc/testsuite/gcc.target/i386/pr94913-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 /* PR target/94913 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 char fooc (unsigned char x, unsigned char y)
6 {
7 return (unsigned char) ~x < y;
8 }
9
10 short foos (unsigned short x, unsigned short y)
11 {
12 return (unsigned short) ~x < y;
13 }
14
15 long fooi (unsigned long x, unsigned long y)
16 {
17 return (unsigned long) ~x < y;
18 }
19
20 /* { dg-final { scan-assembler-not "cmp" } } */
21 /* { dg-final { scan-assembler-times "add" 3 } } */