mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
f264309e4c
values. All of these files should assemble now. llvm-svn: 10239
21 lines
411 B
LLVM
21 lines
411 B
LLVM
|
|
double %test(double* %DP, double %Arg) {
|
|
%D = load double* %DP
|
|
%V = add double %D, 1.0
|
|
%W = sub double %V, %V
|
|
%X = mul double %W, %W
|
|
%Y = div double %X, %X
|
|
%Z = rem double %Y, %Y
|
|
%Z1 = div double %Z, %W
|
|
%Q = add double %Z, %Arg
|
|
%R = cast double %Q to double
|
|
store double %R, double* %DP
|
|
ret double %Z
|
|
}
|
|
|
|
int %main() {
|
|
%X = alloca double
|
|
call double %test(double* %X, double 2.0)
|
|
ret int 0
|
|
}
|