Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/movcond_restrict_it.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-options "-mthumb -O3 -mrestrict-it" } */ int a; __attribute__ ((noinline, noclone)) int fn1 (int c, int d) { if (c > d) a = 1; else a = -1; return a; } int main (void) { if (fn1 (4, 5) != -1) __builtin_abort (); if (fn1 (5, 4) != 1) __builtin_abort (); return 0; }