mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
838 B
LLVM
31 lines
838 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -predsimplify -disable-output
|
|
|
|
int %test_wp_B_slice(int %select_method) {
|
|
entry:
|
|
br label %bb309
|
|
|
|
cond_true114: ; preds = %bb309
|
|
%tmp130 = setlt int 0, 128 ; <bool> [#uses=1]
|
|
%min = select bool %tmp130, int 0, int 127 ; <int> [#uses=2]
|
|
%tmp143 = load int* null ; <int> [#uses=1]
|
|
br bool false, label %bb303, label %bb314
|
|
|
|
cond_true166: ; preds = %bb303
|
|
ret int 0
|
|
|
|
cond_false200: ; preds = %bb303
|
|
%tmp205 = sdiv int %min, 2 ; <int> [#uses=1]
|
|
%iftmp.380.0.p = select bool false, int 0, int %tmp205 ; <int> [#uses=0]
|
|
ret int 0
|
|
|
|
bb303: ; preds = %cond_true114
|
|
%tmp165 = seteq int %min, 0 ; <bool> [#uses=1]
|
|
br bool %tmp165, label %cond_true166, label %cond_false200
|
|
|
|
bb309: ; preds = %bb19
|
|
br bool false, label %cond_true114, label %bb314
|
|
|
|
bb314: ; preds = %bb309
|
|
ret int 0
|
|
}
|