diff options
author | CVS to SVN Conversion <nobody@llvm.org> | 2005-05-16 17:13:10 +0000 |
---|---|---|
committer | CVS to SVN Conversion <nobody@llvm.org> | 2005-05-16 17:13:10 +0000 |
commit | f2fed73d14c3232767d4c302c1d611f3e5002102 (patch) | |
tree | 6f7fae39dbf958575e0f716496ee1a0385bc8486 | |
parent | cb5596d51bbcd4e19d732b34daed339b3d5446db (diff) | |
download | llvm-f2fed73d14c3232767d4c302c1d611f3e5002102.zip llvm-f2fed73d14c3232767d4c302c1d611f3e5002102.tar.gz llvm-f2fed73d14c3232767d4c302c1d611f3e5002102.tar.bz2 |
This commit was manufactured by cvs2svn to create branch 'release_15'.
llvm-svn: 22089
-rw-r--r-- | llvm/docs/llvm.css | 2 | ||||
-rw-r--r-- | llvm/test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll | 46 |
2 files changed, 47 insertions, 1 deletions
diff --git a/llvm/docs/llvm.css b/llvm/docs/llvm.css index c1dc4d4..5c0692b 100644 --- a/llvm/docs/llvm.css +++ b/llvm/docs/llvm.css @@ -47,7 +47,7 @@ TABLE { text-align: center; border: 2px solid black; border-bottom: 1px solid #999999; font-size: 12pt; width: 75%; } .doc_author { text-align: left; font-weight: bold; padding-left: 20pt } -.doc_text { text-align: left; padding-left: 20pt; padding-right: 10pt } +.doc_text { text-align: left; padding-left: 20pt } .doc_footer { text-align: left; padding: 0 0 0 0 } diff --git a/llvm/test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll b/llvm/test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll new file mode 100644 index 0000000..7b7775d --- /dev/null +++ b/llvm/test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll @@ -0,0 +1,46 @@ +; This example was not getting level raised because of a negative index from +; this instruction: +; %reg111 = add int %reg110, -12 +; this testcase is distilled from this C source: +; void foo(int j, int *x) { +; unsigned i; +; for (i = 12; i < 14; ++i) +; x[j*i-12] = j; +; } + +; RUN: llvm-as < %s | opt -raise | llvm-dis | grep ' cast ' | not grep '*' + +implementation + +void "foo"(int %j, int * %x) +begin +bb0: ;[#uses=0] + br label %bb1 + +bb1: ;[#uses=2] + %reg108 = cast int * %x to sbyte * ; <sbyte *> [#uses=1] + %cond219 = setgt ulong 12, 13 ; <bool> [#uses=1] + br bool %cond219, label %bb3, label %bb2 + +bb2: ;[#uses=3] + %cann-indvar = phi uint [ 0, %bb1 ], [ %add1-indvar, %bb2 ] ; <uint> [#uses=2] + %reg117 = add uint %cann-indvar, 12 ; <uint> [#uses=2] + %add1-indvar = add uint %cann-indvar, 1 ; <uint> [#uses=1] + %cast224 = cast uint %reg117 to uint ; <uint> [#uses=1] + %cast225 = cast uint %reg117 to int ; <int> [#uses=1] + %reg110 = mul int %j, %cast225 ; <int> [#uses=1] + %reg111 = add int %reg110, -12 ; <int> [#uses=1] + %cast222 = cast int %reg111 to uint ; <uint> [#uses=1] + %reg113 = shl uint %cast222, ubyte 2 ; <uint> [#uses=1] + %cast114 = cast uint %reg113 to ulong ; <ulong> [#uses=1] + %cast115 = cast ulong %cast114 to sbyte * ; <sbyte *> [#uses=1] + %reg116 = add sbyte * %reg108, %cast115 ; <sbyte *> [#uses=1] + %cast223 = cast sbyte * %reg116 to int * ; <int *> [#uses=1] + store int %j, int * %cast223 + %reg118 = add uint %cast224, 1 ; <uint> [#uses=1] + %cond220 = setle uint %reg118, 13 ; <bool> [#uses=1] + br bool %cond220, label %bb2, label %bb3 + +bb3: ;[#uses=2] + ret void +end |