summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-multdi-1.c
blob: 30150f62dadbe16945688881de21bdb3a60d3970 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
multdi-1.c from the execute part of the gcc torture tests.
*/

#include <testfwk.h>

/* PR target/9348 */

#define u_l_l unsigned long long
#define l_l long long

l_l mpy_res;

#ifndef __SDCC_pdk14 // Lack of memory
u_l_l mpy (long a, long b)
{
  return (u_l_l) a * (u_l_l) b;
}
#endif
 
void
testTortureExecute (void)
{
#ifndef __SDCC_pdk14 // Lack of memory
  mpy_res = mpy(1,-1);
  if (mpy_res != -1LL)
    ASSERT (0);
  return;
#endif
}