File: elf_e_flags.c

package info (click to toggle)
binutils 2.32.51.20190821-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 309,676 kB
  • sloc: ansic: 1,201,497; asm: 658,869; cpp: 130,432; exp: 69,370; makefile: 56,804; sh: 23,583; lisp: 14,519; yacc: 14,467; perl: 2,111; ada: 1,681; lex: 1,649; pascal: 1,446; python: 991; cs: 879; sed: 195; xml: 95; awk: 25
file content (34 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (41)
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
32
33
34
/* 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.

   Ian 10 June 1999: I tweaked the resulting assembler file so that it
   would generate the same code when gas was configured for mips-elf
   and for mips64-elf.

   18 October 2000: Chris Demetriou <cgd@sibyte.com> tweaked the code so
   that it would always generate enough zero-padding at the end to make
   objdump print "...", so that the test would be successful even on
   machines that pad results to cache line or other boundaries
   (e.g. mips-linux). */

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

int
main ()
{
  return 0;
}