xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mcpu=generic
2*9880d681SAndroid Build Coastguard Worker; Make sure LLC doesn't crash in the stackifier due to FP PHI nodes.
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine void @radfg_() {
5*9880d681SAndroid Build Coastguard Workerentry:
6*9880d681SAndroid Build Coastguard Worker        br i1 false, label %no_exit.16.preheader, label %loopentry.0
7*9880d681SAndroid Build Coastguard Workerloopentry.0:            ; preds = %entry
8*9880d681SAndroid Build Coastguard Worker        ret void
9*9880d681SAndroid Build Coastguard Workerno_exit.16.preheader:           ; preds = %entry
10*9880d681SAndroid Build Coastguard Worker        br label %no_exit.16
11*9880d681SAndroid Build Coastguard Workerno_exit.16:             ; preds = %no_exit.16, %no_exit.16.preheader
12*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.16.loopexit, label %no_exit.16
13*9880d681SAndroid Build Coastguard Workerloopexit.16.loopexit:           ; preds = %no_exit.16
14*9880d681SAndroid Build Coastguard Worker        br label %no_exit.18
15*9880d681SAndroid Build Coastguard Workerno_exit.18:             ; preds = %loopexit.20, %loopexit.16.loopexit
16*9880d681SAndroid Build Coastguard Worker        %tmp.882 = fadd float 0.000000e+00, 0.000000e+00         ; <float> [#uses=2]
17*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.19, label %no_exit.19.preheader
18*9880d681SAndroid Build Coastguard Workerno_exit.19.preheader:           ; preds = %no_exit.18
19*9880d681SAndroid Build Coastguard Worker        ret void
20*9880d681SAndroid Build Coastguard Workerloopexit.19:            ; preds = %no_exit.18
21*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.20, label %no_exit.20
22*9880d681SAndroid Build Coastguard Workerno_exit.20:             ; preds = %loopexit.21, %loopexit.19
23*9880d681SAndroid Build Coastguard Worker        %ai2.1122.tmp.3 = phi float [ %tmp.958, %loopexit.21 ], [ %tmp.882, %loopexit.19 ]              ; <float> [#uses=1]
24*9880d681SAndroid Build Coastguard Worker        %tmp.950 = fmul float %tmp.882, %ai2.1122.tmp.3          ; <float> [#uses=1]
25*9880d681SAndroid Build Coastguard Worker        %tmp.951 = fsub float 0.000000e+00, %tmp.950             ; <float> [#uses=1]
26*9880d681SAndroid Build Coastguard Worker        %tmp.958 = fadd float 0.000000e+00, 0.000000e+00         ; <float> [#uses=1]
27*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.21, label %no_exit.21.preheader
28*9880d681SAndroid Build Coastguard Workerno_exit.21.preheader:           ; preds = %no_exit.20
29*9880d681SAndroid Build Coastguard Worker        ret void
30*9880d681SAndroid Build Coastguard Workerloopexit.21:            ; preds = %no_exit.20
31*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.20, label %no_exit.20
32*9880d681SAndroid Build Coastguard Workerloopexit.20:            ; preds = %loopexit.21, %loopexit.19
33*9880d681SAndroid Build Coastguard Worker        %ar2.1124.tmp.2 = phi float [ 0.000000e+00, %loopexit.19 ], [ %tmp.951, %loopexit.21 ]          ; <float> [#uses=0]
34*9880d681SAndroid Build Coastguard Worker        br i1 false, label %loopexit.18.loopexit, label %no_exit.18
35*9880d681SAndroid Build Coastguard Workerloopexit.18.loopexit:           ; preds = %loopexit.20
36*9880d681SAndroid Build Coastguard Worker        ret void
37*9880d681SAndroid Build Coastguard Worker}
38*9880d681SAndroid Build Coastguard Worker
39