summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-09 16:19:57 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-09 16:19:57 +0000
commitf36a29199f55c5fa13b2cd5307c500abc4153ab6 (patch)
treef74f1d74844799460c88b067056e224c60eb19b1
parenta6090256d5a697aeb8bdcf0a136efe7fb2455873 (diff)
downloadbcm5719-llvm-f36a29199f55c5fa13b2cd5307c500abc4153ab6.tar.gz
bcm5719-llvm-f36a29199f55c5fa13b2cd5307c500abc4153ab6.zip
update to use FileCheck and auto-generate checks
llvm-svn: 278131
-rw-r--r--llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll28
1 files changed, 27 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll b/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll
index e9081f0fa94..e815b82f888 100644
--- a/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll
+++ b/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll
@@ -1,6 +1,11 @@
-; RUN: opt < %s -instcombine -S | not grep xor
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -instcombine -S | FileCheck %s
define i1 @test1(i8 %x, i8 %y) {
+; CHECK-LABEL: @test1(
+; CHECK-NEXT: [[TMP:%.*]] = icmp ult i8 %x, %y
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 128
%Y = xor i8 %y, 128
%tmp = icmp slt i8 %X, %Y
@@ -8,6 +13,10 @@ define i1 @test1(i8 %x, i8 %y) {
}
define i1 @test2(i8 %x, i8 %y) {
+; CHECK-LABEL: @test2(
+; CHECK-NEXT: [[TMP:%.*]] = icmp slt i8 %x, %y
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 128
%Y = xor i8 %y, 128
%tmp = icmp ult i8 %X, %Y
@@ -15,12 +24,20 @@ define i1 @test2(i8 %x, i8 %y) {
}
define i1 @test3(i8 %x) {
+; CHECK-LABEL: @test3(
+; CHECK-NEXT: [[TMP:%.*]] = icmp sgt i8 %x, -114
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 128
%tmp = icmp uge i8 %X, 15
ret i1 %tmp
}
define i1 @test4(i8 %x, i8 %y) {
+; CHECK-LABEL: @test4(
+; CHECK-NEXT: [[TMP:%.*]] = icmp ugt i8 %x, %y
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 127
%Y = xor i8 %y, 127
%tmp = icmp slt i8 %X, %Y
@@ -28,6 +45,10 @@ define i1 @test4(i8 %x, i8 %y) {
}
define i1 @test5(i8 %x, i8 %y) {
+; CHECK-LABEL: @test5(
+; CHECK-NEXT: [[TMP:%.*]] = icmp sgt i8 %x, %y
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 127
%Y = xor i8 %y, 127
%tmp = icmp ult i8 %X, %Y
@@ -35,7 +56,12 @@ define i1 @test5(i8 %x, i8 %y) {
}
define i1 @test6(i8 %x) {
+; CHECK-LABEL: @test6(
+; CHECK-NEXT: [[TMP:%.*]] = icmp slt i8 %x, 113
+; CHECK-NEXT: ret i1 [[TMP]]
+;
%X = xor i8 %x, 127
%tmp = icmp uge i8 %X, 15
ret i1 %tmp
}
+
OpenPOWER on IntegriCloud