From: Chris Lattner Date: Tue, 20 Jul 2004 01:47:49 +0000 (+0000) Subject: New testcase that instcombine should help out with. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=247d62c77bc2efd14fb52b223808af7021807da9;p=oota-llvm.git New testcase that instcombine should help out with. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15023 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/GEPIdxCanon.ll b/test/Transforms/InstCombine/GEPIdxCanon.ll new file mode 100644 index 00000000000..0dcce2d794d --- /dev/null +++ b/test/Transforms/InstCombine/GEPIdxCanon.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine -gcse -instcombine | llvm-dis | not grep getelementptr + +bool %test(int* %A) { + %B = getelementptr int* %A, int 1 + %C = getelementptr int* %A, uint 1 + %V = seteq int* %B, %C + ret bool %V +}