[llvm] r297040 - [InstSimplify] regenerate checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 10:13:02 PST 2017
Author: spatel
Date: Mon Mar 6 12:13:01 2017
New Revision: 297040
URL: http://llvm.org/viewvc/llvm-project?rev=297040&view=rev
Log:
[InstSimplify] regenerate checks; NFC
Modified:
llvm/trunk/test/Transforms/InstSimplify/div.ll
llvm/trunk/test/Transforms/InstSimplify/rem.ll
Modified: llvm/trunk/test/Transforms/InstSimplify/div.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/div.ll?rev=297040&r1=297039&r2=297040&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/div.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/div.ll Mon Mar 6 12:13:01 2017
@@ -4,7 +4,7 @@ declare i32 @external()
define i32 @div1() {
; CHECK-LABEL: @div1(
-; CHECK: [[CALL:%.*]] = call i32 @external(), !range !0
+; CHECK-NEXT: [[CALL:%.*]] = call i32 @external(), !range !0
; CHECK-NEXT: ret i32 0
;
%call = call i32 @external(), !range !0
Modified: llvm/trunk/test/Transforms/InstSimplify/rem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/rem.ll?rev=297040&r1=297039&r2=297040&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/rem.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/rem.ll Mon Mar 6 12:13:01 2017
@@ -3,7 +3,7 @@
define i32 @select1(i32 %x, i1 %b) {
; CHECK-LABEL: @select1(
-; CHECK: ret i32 0
+; CHECK-NEXT: ret i32 0
;
%rhs = select i1 %b, i32 %x, i32 1
%rem = srem i32 %x, %rhs
@@ -12,7 +12,7 @@ define i32 @select1(i32 %x, i1 %b) {
define i32 @select2(i32 %x, i1 %b) {
; CHECK-LABEL: @select2(
-; CHECK: ret i32 0
+; CHECK-NEXT: ret i32 0
;
%rhs = select i1 %b, i32 %x, i32 1
%rem = urem i32 %x, %rhs
@@ -21,40 +21,40 @@ define i32 @select2(i32 %x, i1 %b) {
define i32 @rem1(i32 %x, i32 %n) {
; CHECK-LABEL: @rem1(
-; CHECK: [[MOD:%.*]] = srem i32 %x, %n
+; CHECK-NEXT: [[MOD:%.*]] = srem i32 %x, %n
; CHECK-NEXT: ret i32 [[MOD]]
;
- %mod = srem i32 %x, %n
- %mod1 = srem i32 %mod, %n
- ret i32 %mod1
+ %mod = srem i32 %x, %n
+ %mod1 = srem i32 %mod, %n
+ ret i32 %mod1
}
define i32 @rem2(i32 %x, i32 %n) {
; CHECK-LABEL: @rem2(
-; CHECK: [[MOD:%.*]] = urem i32 %x, %n
+; CHECK-NEXT: [[MOD:%.*]] = urem i32 %x, %n
; CHECK-NEXT: ret i32 [[MOD]]
;
- %mod = urem i32 %x, %n
- %mod1 = urem i32 %mod, %n
- ret i32 %mod1
+ %mod = urem i32 %x, %n
+ %mod1 = urem i32 %mod, %n
+ ret i32 %mod1
}
define i32 @rem3(i32 %x, i32 %n) {
; CHECK-LABEL: @rem3(
-; CHECK: [[MOD:%.*]] = srem i32 %x, %n
+; CHECK-NEXT: [[MOD:%.*]] = srem i32 %x, %n
; CHECK-NEXT: [[MOD1:%.*]] = urem i32 [[MOD]], %n
; CHECK-NEXT: ret i32 [[MOD1]]
;
- %mod = srem i32 %x, %n
- %mod1 = urem i32 %mod, %n
- ret i32 %mod1
+ %mod = srem i32 %x, %n
+ %mod1 = urem i32 %mod, %n
+ ret i32 %mod1
}
declare i32 @external()
define i32 @rem4() {
; CHECK-LABEL: @rem4(
-; CHECK: [[CALL:%.*]] = call i32 @external(), !range !0
+; CHECK-NEXT: [[CALL:%.*]] = call i32 @external(), !range !0
; CHECK-NEXT: ret i32 [[CALL]]
;
%call = call i32 @external(), !range !0
More information about the llvm-commits
mailing list