[PATCH] [MIPS] fix extension of integer types (function calls)

Strahinja Petrovic strahinja.petrovic at rt-rk.com
Mon Apr 27 09:17:03 PDT 2015


Yes, I'm trying to resolve bug in dejagnu test suite, this is the shorter version of failed test :

  extern void exit (int);
  extern void abort (void);
  unsigned __attribute__ ((__noinline__)) foo(unsigned a)
  {
    unsigned l;
    l = (a >= (~0u - 512) ? (~0u - 512) : a);
    return l;
  }
  
  int
  main (void)
  {
    if (foo ((unsigned) -512) != (unsigned) -513)
      abort ();
  
    exit (0);
  }


http://reviews.llvm.org/D9198

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list