diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-02-19 01:41:04 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-02-19 01:41:04 +0000 |
commit | 53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26 (patch) | |
tree | 896c6dee3a55f268ea98656237c7954799fd8ec7 /test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll | |
parent | efec751a1b786724862ceff52748df94873a807e (diff) | |
download | external_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.zip external_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.tar.gz external_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.tar.bz2 |
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll')
-rw-r--r-- | test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll b/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll index 6a76079..95ef53c 100644 --- a/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll +++ b/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll @@ -1,39 +1,36 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -; PR1011 +; RUN: llvm-as < %s | llc +; PR1011 +%struct.mng_data = type { i8* (%struct.mng_data*, i32)*, i32, i32, i32, i8, i8, i32, i32, i32, i32, i32 } - %struct.mng_data = type { sbyte* (%struct.mng_data*, uint)*, int, int, int, sbyte, sbyte, int, int, int, int, int } - -implementation ; Functions: - -void %mng_display_bgr565() { +define void @mng_display_bgr565() { entry: - br bool false, label %bb.preheader, label %return + br i1 false, label %bb.preheader, label %return bb.preheader: ; preds = %entry - br bool false, label %cond_true48, label %cond_next80 + br i1 false, label %cond_true48, label %cond_next80 cond_true48: ; preds = %bb.preheader - %tmp = load ubyte* null ; <ubyte> [#uses=1] - %tmp51 = cast ubyte %tmp to ushort ; <ushort> [#uses=1] - %tmp99 = load sbyte* null ; <sbyte> [#uses=1] - %tmp54 = cast sbyte %tmp99 to ubyte ; <ubyte> [#uses=1] - %tmp54 = cast ubyte %tmp54 to int ; <int> [#uses=1] - %tmp55 = lshr int %tmp54, ubyte 3 ; <int> [#uses=1] - %tmp55 = cast int %tmp55 to ushort ; <ushort> [#uses=1] - %tmp52 = shl ushort %tmp51, ubyte 5 ; <ushort> [#uses=1] - %tmp56 = and ushort %tmp55, 28 ; <ushort> [#uses=1] - %tmp57 = or ushort %tmp56, %tmp52 ; <ushort> [#uses=1] - %tmp60 = cast ushort %tmp57 to uint ; <uint> [#uses=1] - %tmp62 = xor uint 0, 65535 ; <uint> [#uses=1] - %tmp63 = mul uint %tmp60, %tmp62 ; <uint> [#uses=1] - %tmp65 = add uint 0, %tmp63 ; <uint> [#uses=1] - %tmp69 = add uint 0, %tmp65 ; <uint> [#uses=1] - %tmp70 = lshr uint %tmp69, ubyte 16 ; <uint> [#uses=1] - %tmp70 = cast uint %tmp70 to ushort ; <ushort> [#uses=1] - %tmp75 = lshr ushort %tmp70, ubyte 8 ; <ushort> [#uses=1] - %tmp75 = cast ushort %tmp75 to ubyte ; <ubyte> [#uses=1] - %tmp76 = lshr ubyte %tmp75, ubyte 5 ; <ubyte> [#uses=1] - store ubyte %tmp76, ubyte* null + %tmp = load i8* null ; <i8> [#uses=1] + %tmp51 = zext i8 %tmp to i16 ; <i16> [#uses=1] + %tmp99 = load i8* null ; <i8> [#uses=1] + %tmp54 = bitcast i8 %tmp99 to i8 ; <i8> [#uses=1] + %tmp54.upgrd.1 = zext i8 %tmp54 to i32 ; <i32> [#uses=1] + %tmp55 = lshr i32 %tmp54.upgrd.1, 3 ; <i32> [#uses=1] + %tmp55.upgrd.2 = trunc i32 %tmp55 to i16 ; <i16> [#uses=1] + %tmp52 = shl i16 %tmp51, 5 ; <i16> [#uses=1] + %tmp56 = and i16 %tmp55.upgrd.2, 28 ; <i16> [#uses=1] + %tmp57 = or i16 %tmp56, %tmp52 ; <i16> [#uses=1] + %tmp60 = zext i16 %tmp57 to i32 ; <i32> [#uses=1] + %tmp62 = xor i32 0, 65535 ; <i32> [#uses=1] + %tmp63 = mul i32 %tmp60, %tmp62 ; <i32> [#uses=1] + %tmp65 = add i32 0, %tmp63 ; <i32> [#uses=1] + %tmp69 = add i32 0, %tmp65 ; <i32> [#uses=1] + %tmp70 = lshr i32 %tmp69, 16 ; <i32> [#uses=1] + %tmp70.upgrd.3 = trunc i32 %tmp70 to i16 ; <i16> [#uses=1] + %tmp75 = lshr i16 %tmp70.upgrd.3, 8 ; <i16> [#uses=1] + %tmp75.upgrd.4 = trunc i16 %tmp75 to i8 ; <i8> [#uses=1] + %tmp76 = lshr i8 %tmp75.upgrd.4, 5 ; <i8> [#uses=1] + store i8 %tmp76, i8* null ret void cond_next80: ; preds = %bb.preheader |