From 195e9176af7236f87039e6eb9fc17d4b9e5b8f57 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Jan 2005 23:26:14 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19539 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../InstCombine/getelementptr-setcc.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/Transforms/InstCombine/getelementptr-setcc.ll diff --git a/test/Transforms/InstCombine/getelementptr-setcc.ll b/test/Transforms/InstCombine/getelementptr-setcc.ll new file mode 100644 index 00000000000..0022d63fb59 --- /dev/null +++ b/test/Transforms/InstCombine/getelementptr-setcc.ll @@ -0,0 +1,17 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep getelementptr + +bool %test1(short* %P, int %I, int %J) { + %X = getelementptr short* %P, int %I + %Y = getelementptr short* %P, int %J + + %C = setlt short* %X, %Y + ret bool %C +} + +bool %test2(short* %P, int %I) { + %X = getelementptr short* %P, int %I + + %C = setlt short* %X, %P + ret bool %C +} + -- 2.34.1