mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 06:22:51 +01:00
14e00852c5
llvm-svn: 5155
18 lines
304 B
LLVM
18 lines
304 B
LLVM
|
|
double %test(double* %DP) {
|
|
%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
|
|
store double %Z, double* %DP
|
|
ret double %Z
|
|
}
|
|
|
|
int %main() {
|
|
%X = alloca double
|
|
call double %test(double* %X)
|
|
ret int 0
|
|
}
|