MIPS16: Handle non-extensible instructions correctly
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / elf_e_flags.c
CommitLineData
252b5132
RH
1/* This file isn't directly used by the test suite; it uses
2 elf_e_flags.s. However, I figured it would be nice to provide the
3 source code from which the .s file was generated.
4
5 It was compiled as follows:
6
7 mips64-elf-gcc -m4650 -S -O elf_e_flags.c
8
9 We use the -m4650 flag to get the 4650-specific 'mul' instruction
10 in there; the test suite wants to be sure that GAS's -m4650 flag
11 will indeed cause it to generate the 4650 mul instruction, and not
8ee99f93
ILT
12 expand it as a macro.
13
14 Ian 10 June 1999: I tweaked the resulting assembler file so that it
15 would generate the same code when gas was configured for mips-elf
4c507252
NC
16 and for mips64-elf.
17
18 18 October 2000: Chris Demetriou <cgd@sibyte.com> tweaked the code so
19 that it would always generate enough zero-padding at the end to make
20 objdump print "...", so that the test would be successful even on
21 machines that pad results to cache line or other boundaries
22 (e.g. mips-linux). */
252b5132
RH
23
24int
25foo (int a, int b)
26{
27 return (a * b) + 1;
28}
29
30int
31main ()
32{
33 return 0;
34}
This page took 0.754552 seconds and 4 git commands to generate.