mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
auto-generate checks
llvm-svn: 281756
This commit is contained in:
parent
ee2d01e182
commit
5e1cecf28d
@ -1,13 +1,15 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -instsimplify -S < %s | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: @test
|
||||
define i1 @test(i8 %p, i8* %pq) {
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK-NEXT: ret i1 false
|
||||
;
|
||||
%q = load i8, i8* %pq, !range !0 ; %q is known nonzero; no known bits
|
||||
%1 = or i8 %p, 2 ; %1[1] = 1
|
||||
%2 = and i8 %1, 254 ; %2[0] = 0, %2[1] = 1
|
||||
%A = lshr i8 %2, 1 ; We should know that %A is nonzero.
|
||||
%x = icmp eq i8 %A, 0
|
||||
; CHECK: ret i1 false
|
||||
ret i1 %x
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user