manually upgrade a bunch of tests to modern syntax, and remove some that
[oota-llvm.git] / test / CodeGen / PowerPC / 2008-10-30-IllegalShift.ll
1 ; RUN: llc < %s -march=ppc32
2 ; PR2986
3 @argc = external global i32             ; <i32*> [#uses=1]
4 @buffer = external global [32 x i8], align 4            ; <[32 x i8]*> [#uses=1]
5
6 define void @test1() nounwind noinline {
7 entry:
8         %0 = load i32* @argc, align 4           ; <i32> [#uses=1]
9         %1 = trunc i32 %0 to i8         ; <i8> [#uses=1]
10         tail call void @llvm.memset.i32(i8* getelementptr ([32 x i8]* @buffer, i32 0, i32 0), i8 %1, i32 17, i32 4)
11         unreachable
12 }
13
14 declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind