OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [mips/] [elf_e_flags.c] - Diff between revs 38 and 156

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 156
/* This file isn't directly used by the test suite; it uses
/* 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
   elf_e_flags.s.  However, I figured it would be nice to provide the
   source code from which the .s file was generated.
   source code from which the .s file was generated.
 
 
   It was compiled as follows:
   It was compiled as follows:
 
 
   mips64-elf-gcc -m4650 -S -O elf_e_flags.c
   mips64-elf-gcc -m4650 -S -O elf_e_flags.c
 
 
   We use the -m4650 flag to get the 4650-specific 'mul' instruction
   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
   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
   will indeed cause it to generate the 4650 mul instruction, and not
   expand it as a macro.
   expand it as a macro.
 
 
   Ian 10 June 1999: I tweaked the resulting assembler file so that it
   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
   would generate the same code when gas was configured for mips-elf
   and for mips64-elf.
   and for mips64-elf.
 
 
   18 October 2000: Chris Demetriou <cgd@sibyte.com> tweaked the code so
   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
   that it would always generate enough zero-padding at the end to make
   objdump print "...", so that the test would be successful even on
   objdump print "...", so that the test would be successful even on
   machines that pad results to cache line or other boundaries
   machines that pad results to cache line or other boundaries
   (e.g. mips-linux). */
   (e.g. mips-linux). */
 
 
int
int
foo (int a, int b)
foo (int a, int b)
{
{
  return (a * b) + 1;
  return (a * b) + 1;
}
}
 
 
int
int
main ()
main ()
{
{
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.