summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/elf_e_flags.c
blob: 17fb1110c8e763a8b50f48c46f634ef90d4806b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* This file isn't directly used by the test suite; it uses
   elf_e_flags.s.  However, I figured it would be nice to provide the
   source code from which the .s file was generated.

   It was compiled as follows:

   mips64-elf-gcc -m4650 -S -O elf_e_flags.c

   We use the -m4650 flag to get the 4650-specific 'mul' instruction
   in there; the test suite wants to be sure that GAS's -m4650 flag
   will indeed cause it to generate the 4650 mul instruction, and not
   expand it as a macro.  */

int
foo (int a, int b)
{
  return (a * b) + 1;
}

int
main ()
{
  return 0;
}