1 ; RUN: %lli -jit-kind=orc-mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null
2 ; XFAIL: windows-gnu,windows-msvc
3 ; UNSUPPORTED: powerpc64-unknown-linux-gnu
4 ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
6 define double @test(double* %DP, double %Arg) nounwind {
7 %D = load double, double* %DP ; <double> [#uses=1]
8 %V = fadd double %D, 1.000000e+00 ; <double> [#uses=2]
9 %W = fsub double %V, %V ; <double> [#uses=3]
10 %X = fmul double %W, %W ; <double> [#uses=2]
11 %Y = fdiv double %X, %X ; <double> [#uses=2]
12 %Q = fadd double %Y, %Arg ; <double> [#uses=1]
13 %R = bitcast double %Q to double ; <double> [#uses=1]
14 store double %Q, double* %DP
18 define i32 @main() nounwind {
19 %X = alloca double ; <double*> [#uses=2]
20 store double 0.000000e+00, double* %X
21 call double @test( double* %X, double 2.000000e+00 ) ; <double>:1 [#uses=0]