You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
13
external/llvm/test/Analysis/ValueTracking/knownnonzero-shift.ll
vendored
Normal file
13
external/llvm/test/Analysis/ValueTracking/knownnonzero-shift.ll
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: opt -instsimplify -S < %s | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: @test
|
||||
define i1 @test(i8 %p, i8* %pq) {
|
||||
%q = load i8, i8* %pq, !range !0 ; %q is known nonzero; no known bits
|
||||
%1 = shl i8 %p, %q ; because %q is nonzero, %1[0] is known to be zero.
|
||||
%2 = and i8 %1, 1
|
||||
%x = icmp eq i8 %2, 0
|
||||
; CHECK: ret i1 true
|
||||
ret i1 %x
|
||||
}
|
||||
|
||||
!0 = !{ i8 1, i8 5 }
|
Reference in New Issue
Block a user