From 68f6b8cba875f3ebe4ea9eb980b2781b3dd0272d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 14 Jan 2005 00:26:25 +0000 Subject: [PATCH] More testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19543 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Transforms/InstCombine/getelementptr-setcc.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/Transforms/InstCombine/getelementptr-setcc.ll b/test/Transforms/InstCombine/getelementptr-setcc.ll index 0022d63fb59..292e4ae63ac 100644 --- a/test/Transforms/InstCombine/getelementptr-setcc.ll +++ b/test/Transforms/InstCombine/getelementptr-setcc.ll @@ -15,3 +15,18 @@ bool %test2(short* %P, int %I) { ret bool %C } +int %test3(int* %P, int %A, int %B) { + %tmp.4 = getelementptr int* %P, int %A ; [#uses=1] + %tmp.9 = getelementptr int* %P, int %B ; [#uses=1] + %tmp.10 = seteq int* %tmp.4, %tmp.9 ; [#uses=1] + %tmp.11 = cast bool %tmp.10 to int ; [#uses=1] + ret int %tmp.11 +} + +int %test4(int* %P, int %A, int %B) { + %tmp.4 = getelementptr int* %P, int %A ; [#uses=1] + %tmp.6 = seteq int* %tmp.4, %P ; [#uses=1] + %tmp.7 = cast bool %tmp.6 to int ; [#uses=1] + ret int %tmp.7 +} + -- 2.34.1