summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-15 18:56:10 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-15 18:56:10 +0000
commit6866b82a059b7469a25110bc4c4fb98b1d001b34 (patch)
tree82cb96ceea6116ea797c1e9971199bc79b2936db /llvm
parentbb8652312aaad8b7132830cee391b23dca3852fd (diff)
downloadbcm5719-llvm-6866b82a059b7469a25110bc4c4fb98b1d001b34.tar.gz
bcm5719-llvm-6866b82a059b7469a25110bc4c4fb98b1d001b34.zip
update test to use FileCheck and autogenerated checks
llvm-svn: 278714
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll15
1 files changed, 12 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll b/llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
index 719da7083af..cfb83f296d9 100644
--- a/llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
+++ b/llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
@@ -1,7 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -instcombine -S | FileCheck %s
+
; For PR1248
-; RUN: opt < %s -instcombine -S | grep "ugt i32 .*, 11"
+
define i1 @test(i32 %tmp6) {
- %tmp7 = sdiv i32 %tmp6, 12 ; <i32> [#uses=1]
- icmp ne i32 %tmp7, -6 ; <i1>:1 [#uses=1]
+; CHECK-LABEL: @test(
+; CHECK-NEXT: [[TMP6_OFF:%.*]] = add i32 %tmp6, 83
+; CHECK-NEXT: [[TMP1:%.*]] = icmp ugt i32 [[TMP6_OFF]], 11
+; CHECK-NEXT: ret i1 [[TMP1]]
+;
+ %tmp7 = sdiv i32 %tmp6, 12
+ icmp ne i32 %tmp7, -6
ret i1 %1
}
+
OpenPOWER on IntegriCloud