Back to index

cell-binutils  2.17cvs20070401
elf_e_flags.c
Go to the documentation of this file.
00001 /* This file isn't directly used by the test suite; it uses
00002    elf_e_flags.s.  However, I figured it would be nice to provide the
00003    source code from which the .s file was generated.
00004 
00005    It was compiled as follows:
00006 
00007    mips64-elf-gcc -m4650 -S -O elf_e_flags.c
00008 
00009    We use the -m4650 flag to get the 4650-specific 'mul' instruction
00010    in there; the test suite wants to be sure that GAS's -m4650 flag
00011    will indeed cause it to generate the 4650 mul instruction, and not
00012    expand it as a macro.
00013 
00014    Ian 10 June 1999: I tweaked the resulting assembler file so that it
00015    would generate the same code when gas was configured for mips-elf
00016    and for mips64-elf.
00017 
00018    18 October 2000: Chris Demetriou <cgd@sibyte.com> tweaked the code so
00019    that it would always generate enough zero-padding at the end to make
00020    objdump print "...", so that the test would be successful even on
00021    machines that pad results to cache line or other boundaries
00022    (e.g. mips-linux). */
00023 
00024 int
00025 foo (int a, int b)
00026 {
00027   return (a * b) + 1;
00028 }
00029 
00030 int
00031 main ()
00032 {
00033   return 0;
00034 }