[llvm-commits] [llvm] r58456 - /llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll
Duncan Sands
baldrick at free.fr
Thu Oct 30 13:34:41 PDT 2008
Author: baldrick
Date: Thu Oct 30 15:34:30 2008
New Revision: 58456
URL: http://llvm.org/viewvc/llvm-project?rev=58456&view=rev
Log:
Testcase for PR2986.
Added:
llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll
Added: llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll?rev=58456&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll (added)
+++ llvm/trunk/test/CodeGen/PowerPC/2008-10-30-IllegalShift.ll Thu Oct 30 15:34:30 2008
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+; PR2986
+ at argc = external global i32 ; <i32*> [#uses=1]
+ at buffer = external global [32 x i8], align 4 ; <[32 x i8]*> [#uses=1]
+
+define void @test1() nounwind noinline {
+entry:
+ %0 = load i32* @argc, align 4 ; <i32> [#uses=1]
+ %1 = trunc i32 %0 to i8 ; <i8> [#uses=1]
+ tail call void @llvm.memset.i32(i8* getelementptr ([32 x i8]* @buffer, i32 0, i32 0), i8 %1, i32 17, i32 4)
+ unreachable
+}
+
+declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind
More information about the llvm-commits
mailing list