[Bug target/29900] [4.1/4.2/4.3] stackreg to go wrongs

hjl at lucon dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 20 14:52:00 GMT 2006



------- Comment #10 from hjl at lucon dot org  2006-11-20 14:51 -------
Here is a testcae in C:

bash-3.1$ cat bar.c
extern float ALBTAB [4][5];

float
foo (int IU, int JU, int IIL, int JJL, float XI, float YJ)
{
  return ALBTAB[IU][JU]*(XI-IIL)*(YJ-JJL)+ALBTAB[IIL][JJL]*(IU-XI)*(JU-YJ);
}

I got

Basic block 2
Input stack: empty
  insn 10 input stack: empty
  insn 11 input stack: [ 10 ]
  insn 57 input stack: [ 10 11 ]
...
(insn:TI 57 56 17 2 (set (reg:SF 8 st)
        (float:SF (mem:SI (reg/f:SI 7 sp) [0 S4 A8]))) 169 {*floatsisf2_i387}
(nil)
    (nil))


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29900



More information about the Gcc-bugs mailing list