mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
08af6fd5fc
Convert to use the new Tcl expr based test harness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36061 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
651 B
LLVM
27 lines
651 B
LLVM
; a load or store of a pointer indicates that the pointer is not null.
|
|
; Any succeeding uses of the pointer should get this info
|
|
;
|
|
; XFAIL: *
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | \
|
|
; RUN: llvm-dis | not grep br
|
|
; END.
|
|
|
|
implementation ; Functions:
|
|
|
|
declare void %foo()
|
|
declare void %bar()
|
|
|
|
int %nullptr(int* %j) {
|
|
bb0:
|
|
store int 7, int* %j ; j != null
|
|
%cond220 = seteq int* %j, null ; F
|
|
br bool %cond220, label %bb3, label %bb4 ; direct branch
|
|
|
|
bb3:
|
|
call void %foo()
|
|
ret int 4 ; Dead code
|
|
bb4:
|
|
call void %bar()
|
|
ret int 3 ; Live code
|
|
}
|