forked from OSchip/llvm-project
[InstSimplify] Move assume icmp test (NFC)
Move this test from InstCombine into InstSimplify.
This commit is contained in:
parent
3fb48b7088
commit
a59dc55c2a
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
||||
|
||||
declare void @llvm.assume(i1)
|
||||
declare void @use(i1)
|
||||
|
@ -100,8 +100,8 @@ define void @and(i32 %x, i32 %y, i32 %z) {
|
|||
; CHECK-LABEL: @and(
|
||||
; CHECK-NEXT: [[CMP1:%.*]] = icmp ugt i32 [[X:%.*]], [[Y:%.*]]
|
||||
; CHECK-NEXT: [[CMP2:%.*]] = icmp ugt i32 [[Z:%.*]], [[Y]]
|
||||
; CHECK-NEXT: call void @llvm.assume(i1 [[CMP1]])
|
||||
; CHECK-NEXT: call void @llvm.assume(i1 [[CMP2]])
|
||||
; CHECK-NEXT: [[AND:%.*]] = and i1 [[CMP1]], [[CMP2]]
|
||||
; CHECK-NEXT: call void @llvm.assume(i1 [[AND]])
|
||||
; CHECK-NEXT: [[CMP3:%.*]] = icmp ugt i32 [[X]], [[Y]]
|
||||
; CHECK-NEXT: call void @use(i1 [[CMP3]])
|
||||
; CHECK-NEXT: [[CMP4:%.*]] = icmp uge i32 [[X]], [[Y]]
|
Loading…
Reference in New Issue