* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030218-1.c
blob8dde79451feb519cf1c9391ab8c8dbb73c462a42
1 /* On H8, the predicate general_operand_src(op,mode) used to ignore
2 mode when op is a (mem (post_inc ...)). As a result, the pattern
3 for extendhisi2 was recognized as extendqisi2. */
5 extern void abort ();
6 extern void exit (int);
8 short *q;
10 long
11 foo (short *p)
13 long b = *p;
14 q = p + 1;
15 return b;
18 int
19 main ()
21 short a = 0xff00;
22 if (foo (&a) != (long) (short) 0xff00)
23 abort ();
24 exit (0);