From 9492af43c46735b60440ea82245266058a6015d0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Jul 2004 01:47:49 +0000 Subject: [PATCH] New testcase that instcombine should help out with. llvm-svn: 15023 --- .../test/Regression/Transforms/InstCombine/GEPIdxCanon.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll diff --git a/llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll b/llvm/test/Regression/Transforms/InstCombine/GEPIdxCanon.ll new file mode 100644 index 000000000000..0dcce2d794df --- /dev/null +++ b/llvm/test/Regression/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 +}