diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-20 18:05:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-20 18:05:26 +0000 |
commit | f2d2a5a79ccc5d5fb8beafd315290b5bbb274232 (patch) | |
tree | 88ffbec0478d45810fac2897a3eb500228852cfa /test | |
parent | a138c6c73a9e594d82958af6b9ee01108e05e7ac (diff) | |
download | external_llvm-f2d2a5a79ccc5d5fb8beafd315290b5bbb274232.zip external_llvm-f2d2a5a79ccc5d5fb8beafd315290b5bbb274232.tar.gz external_llvm-f2d2a5a79ccc5d5fb8beafd315290b5bbb274232.tar.bz2 |
Testcase for PR1011
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll b/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll new file mode 100644 index 0000000..93b5857 --- /dev/null +++ b/test/CodeGen/Generic/2006-11-20-DAGCombineCrash.ll @@ -0,0 +1,44 @@ +; RUN: llvm-as < %s | llc +; PR1011 + + %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() { +entry: + br bool false, label %bb.preheader, label %return + +bb.preheader: ; preds = %entry + br bool 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 + ret void + +cond_next80: ; preds = %bb.preheader + ret void + +return: ; preds = %entry + ret void +} |