mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 02:44:32 +00:00
48664e7e2e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5159 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
355 B
LLVM
19 lines
355 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
|
|
%Q = add double %Z, %Arg
|
|
store double %Q, double* %DP
|
|
ret double %Z
|
|
}
|
|
|
|
int %main() {
|
|
%X = alloca double
|
|
call double %test(double* %X, double 1.0)
|
|
ret int 0
|
|
}
|