[InstSimplify] regenerate checks; NFC

llvm-svn: 297040
This commit is contained in:
Sanjay Patel 2017-03-06 18:13:01 +00:00
parent 03c5c21568
commit c494239bd8
2 changed files with 16 additions and 16 deletions

View File

@ -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

View File

@ -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