• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: %lli -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
5
6define 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
15	ret double %Y
16}
17
18define 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]
22	ret i32 0
23}
24