[llvm] r278137 - auto-generate checks
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 10:03:52 PDT 2016
Author: spatel
Date: Tue Aug 9 12:03:51 2016
New Revision: 278137
URL: http://llvm.org/viewvc/llvm-project?rev=278137&view=rev
Log:
auto-generate checks
Modified:
llvm/trunk/test/Transforms/InstCombine/apint-shl-trunc.ll
Modified: llvm/trunk/test/Transforms/InstCombine/apint-shl-trunc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/apint-shl-trunc.ll?rev=278137&r1=278136&r2=278137&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/apint-shl-trunc.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/apint-shl-trunc.ll Tue Aug 9 12:03:51 2016
@@ -1,25 +1,27 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
define i1 @test0(i39 %X, i39 %A) {
; CHECK-LABEL: @test0(
-; CHECK: %[[V1:.*]] = shl i39 1, %A
-; CHECK: %[[V2:.*]] = and i39 %[[V1]], %X
-; CHECK: %[[V3:.*]] = icmp ne i39 %[[V2]], 0
-; CHECK: ret i1 %[[V3]]
-
- %B = lshr i39 %X, %A
- %D = trunc i39 %B to i1
- ret i1 %D
+; CHECK-NEXT: [[TMP1:%.*]] = shl i39 1, %A
+; CHECK-NEXT: [[TMP2:%.*]] = and i39 [[TMP1]], %X
+; CHECK-NEXT: [[D:%.*]] = icmp ne i39 [[TMP2]], 0
+; CHECK-NEXT: ret i1 [[D]]
+;
+ %B = lshr i39 %X, %A
+ %D = trunc i39 %B to i1
+ ret i1 %D
}
define i1 @test1(i799 %X, i799 %A) {
; CHECK-LABEL: @test1(
-; CHECK: %[[V1:.*]] = shl i799 1, %A
-; CHECK: %[[V2:.*]] = and i799 %[[V1]], %X
-; CHECK: %[[V3:.*]] = icmp ne i799 %[[V2]], 0
-; CHECK: ret i1 %[[V3]]
-
- %B = lshr i799 %X, %A
- %D = trunc i799 %B to i1
- ret i1 %D
+; CHECK-NEXT: [[TMP1:%.*]] = shl i799 1, %A
+; CHECK-NEXT: [[TMP2:%.*]] = and i799 [[TMP1]], %X
+; CHECK-NEXT: [[D:%.*]] = icmp ne i799 [[TMP2]], 0
+; CHECK-NEXT: ret i1 [[D]]
+;
+ %B = lshr i799 %X, %A
+ %D = trunc i799 %B to i1
+ ret i1 %D
}
+
More information about the llvm-commits
mailing list