You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
This commit is contained in:
parent
32d52ae4ca
commit
f32dbaf0b2
15
external/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll
vendored
Normal file
15
external/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: opt < %s -instcombine -S | grep icmp
|
||||
; PR1646
|
||||
|
||||
@__gthrw_pthread_cancel = weak alias i32 (i32), i32 (i32)* @pthread_cancel ; <i32 (i32)*> [#uses=1]
|
||||
@__gthread_active_ptr.5335 = internal constant i8* bitcast (i32 (i32)* @__gthrw_pthread_cancel to i8*) ; <i8**> [#uses=1]
|
||||
define weak i32 @pthread_cancel(i32) {
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i1 @__gthread_active_p() {
|
||||
entry:
|
||||
%tmp1 = load i8*, i8** @__gthread_active_ptr.5335, align 4 ; <i8*> [#uses=1]
|
||||
%tmp2 = icmp ne i8* %tmp1, null ; <i1> [#uses=1]
|
||||
ret i1 %tmp2
|
||||
}
|
Reference in New Issue
Block a user