URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.dg/] [ftrapv-1.c] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
/* Copyright (C) 2004 Free Software Foundation. PR other/15526 Verify correct overflow checking with -ftrapv. Written by Falk Hueffner, 20th May 2004. */ /* { dg-do run } */ /* { dg-options "-ftrapv" } */ __attribute__((noinline)) int mulv(int a, int b) { return a * b; } int main() { mulv( 0, 0); mulv( 0, -1); mulv(-1, 0); mulv(-1, -1); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log