[llvm-commits] [llvm] r46397 - /llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll
Chris Lattner
clattner at apple.com
Sat Jan 26 00:22:19 PST 2008
On Jan 25, 2008, at 10:56 PM, Bill Wendling wrote:
> Author: void
> Date: Sat Jan 26 00:56:08 2008
> New Revision: 46397
>
> URL: http://llvm.org/viewvc/llvm-project?rev=46397&view=rev
> Log:
> Need to convert to LLVM code and not C.
This should also pass a darwin target triple to llc (or embed it in
the .ll file), because ppc linux doesn't need the nop.
It would also be nice to put a short comment in the test explaining
why we expect a nop in this crazy case :)
Thanks Bill,
-Chris
>
>
> Modified:
> llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll
>
> Modified: llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll?rev=46397&r1=46396&r2=46397&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll
> (original)
> +++ llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll Sat
> Jan 26 00:56:08 2008
> @@ -1,7 +1,6 @@
> -// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep llvm.trap
> -// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep unreachable
> +; RUN: llvm-as < %s | llc -march=ppc32 | grep nop
>
> -void bork() {
> - int *address = 0;
> - *address = 0;
> +define void @bork() noreturn nounwind {
> +entry:
> + unreachable
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list