Removed use of grep from test and moved it to be with other icmp tests
authorPete Cooper <peter_cooper@apple.com>
Thu, 1 Dec 2011 04:35:26 +0000 (04:35 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 1 Dec 2011 04:35:26 +0000 (04:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145570 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/compare-abs-nonzero.ll [deleted file]
test/Transforms/InstCombine/icmp.ll

diff --git a/test/Transforms/InstCombine/compare-abs-nonzero.ll b/test/Transforms/InstCombine/compare-abs-nonzero.ll
deleted file mode 100644 (file)
index 49cd688..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: opt < %s -instcombine -S | grep -v {select}
-
-define zeroext i1 @cmpabs(i64 %val) nounwind uwtable readnone ssp {
-entry:
-  %sub = sub nsw i64 0, %val
-  %cmp = icmp slt i64 %val, 0
-  %sub.val = select i1 %cmp, i64 %sub, i64 %val
-  %tobool = icmp ne i64 %sub.val, 0
-  ret i1 %tobool
-}
index 77ca62cfec67d5c2d948fe169aa7da17ff5c885f..e3d12f7fff76ab1fd5690d4b9ff3b2134b6a4c8d 100644 (file)
@@ -559,3 +559,14 @@ define i1 @test57(i32 %a) {
   call void @foo(i32 %and)
   ret i1 %cmp
 }
+
+; rdar://problem/10482509
+; CHECK: @cmpabs
+; CHECK-NEXT: icmp ne
+define zeroext i1 @cmpabs(i64 %val) {
+  %sub = sub nsw i64 0, %val
+  %cmp = icmp slt i64 %val, 0
+  %sub.val = select i1 %cmp, i64 %sub, i64 %val
+  %tobool = icmp ne i64 %sub.val, 0
+  ret i1 %tobool
+}