diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-09 03:43:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-09 03:43:09 +0000 |
commit | 5862173c84f18957d90dffcdac23aecae286f9ba (patch) | |
tree | ca5c21e659d89b42ec344fb6cdbf5664bff4b8a3 /test | |
parent | e083a1d6956bee8a2d54616571f3a626a904e089 (diff) | |
download | external_llvm-5862173c84f18957d90dffcdac23aecae286f9ba.zip external_llvm-5862173c84f18957d90dffcdac23aecae286f9ba.tar.gz external_llvm-5862173c84f18957d90dffcdac23aecae286f9ba.tar.bz2 |
Testcase no longer applicable since shifts of pointers are no longer allowed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll b/test/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll deleted file mode 100644 index 7c84cf25..0000000 --- a/test/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll +++ /dev/null @@ -1,20 +0,0 @@ -; This tests for a bug exposed by the Olden health benchmark where a shift of a -; pointer was thrown away, causing this whole example to be "optimized" away, -; which was quite bogus. Check that this is fixed. -; -; RUN: as < %s | opt -instcombine | dis | grep reg162 - -implementation ; Functions: - -int %test(uint %cann-indvar) { - %reg189-scale = mul uint %cann-indvar, 4294967295 ; <uint> [#uses=1] - %reg189 = add uint %reg189-scale, 3 ; <uint> [#uses=1] - %cast362 = cast uint %reg189 to int ; <int> [#uses=1] - %cast363 = cast int %cast362 to sbyte* ; <sbyte*> [#uses=2] - %reg160 = shl sbyte* %cast363, ubyte 1 ; <sbyte*> [#uses=1] - %reg161 = add sbyte* %reg160, %cast363 ; <sbyte*> [#uses=1] - %reg162 = shl sbyte* %reg161, ubyte 2 ; <sbyte*> [#uses=1] - %RV = cast sbyte* %reg162 to int ; <int> [#uses=1] - ret int %RV -} - |