2008-01-25-ByValReadNone.c Failure

Hi all,

I'm seeing this failure on my PPC G4 box running TOT with llvm-gcc 4.2. Is anyone else seeing this? I'm sure it's related to the byval stuff that's recently gone into LLVM. I'm attaching the output of this command:

$ llvm-gcc -emit-llvm -O3 -S -o - -emit-llvm /Users/wendling/llvm/llvm.src/test/CFrontend/2008-01-25-ByValReadNone.c

As you can see in it, there are "readonly" attributes on the functions.

-bw

2008-01-25-ByValReadNone.ll.gz (8.52 KB)

Hi Bill,

As you can see in it, there are "readonly" attributes on the functions.

this test uses a huge array in order to be sure that it would be passed
'byval' and not as thousands of individual integer parameters. On your
machine it is passed as thousands of individual integer parameters! That
is the bug.

Ciao,

Duncan.

Right now byval is really only implemented on x86. The more interesting question IMO is why this test isn't failing in the nightly PPC32 test runs. It ought to be (it fails for me locally on ppc, and has for a while, probably always).

For now, please just mark this test as xfail on ppc, arm, and other non-x86 targets.

-Chris

Ah ha! That would explain it. :slight_smile: I'll file a PR.

-bw

Could it be partially implemented on some of the other machines? I
filed PR2068 to keep track of this.

-bw