Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/20030218-1.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* On H8, the predicate general_operand_src(op,mode) used to ignore mode when op is a (mem (post_inc ...)). As a result, the pattern for extendhisi2 was recognized as extendqisi2. */ extern void abort (); extern void exit (int); short *q; long foo (short *p) { long b = *p; q = p + 1; return b; } int main () { short a = 0xff00; if (foo (&a) != (long) (short) 0xff00) abort (); exit (0); }