diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-21 05:39:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-21 05:39:20 +0000 |
commit | 774888c1a4ae56c3c552accc03e9c47cf6f47d09 (patch) | |
tree | 93fcc14567058164e204548baf4043c3bef0f239 /test | |
parent | 150dcb9e2d290c95f40ba9616863b77ff8511df6 (diff) | |
download | external_llvm-774888c1a4ae56c3c552accc03e9c47cf6f47d09.zip external_llvm-774888c1a4ae56c3c552accc03e9c47cf6f47d09.tar.gz external_llvm-774888c1a4ae56c3c552accc03e9c47cf6f47d09.tar.bz2 |
New testcase for YALRB (yet another level raise bug)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/LevelRaise/2002-03-20-Crash.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/LevelRaise/2002-03-20-Crash.ll b/test/Transforms/LevelRaise/2002-03-20-Crash.ll new file mode 100644 index 0000000..496354f --- /dev/null +++ b/test/Transforms/LevelRaise/2002-03-20-Crash.ll @@ -0,0 +1,17 @@ +; Level raise is making an incorrect transformation, which causes incorrect +; bytecode to be generated. +; +; RUN: as < %s | opt -raise | dis +; + + %Village = type { [4 x \3 *], \2 *, { \2 *, { int, int, int, \5 * } *, \2 * }, { int, int, int, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * } }, int, int } +implementation + +%Village *"get_results"(%Results * %StructReturn, %Village * %village) +begin +bb0: ;[#uses=1] + %cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1] + %reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1] + %reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1] + ret %Village *%reg118 +end |