projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
102f533
)
add div test as well
author
Chris Lattner
<sabre@nondot.org>
Mon, 13 Jan 2003 00:56:54 +0000
(
00:56
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 13 Jan 2003 00:56:54 +0000
(
00:56
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5245
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/ExecutionEngine/test-fp.ll
patch
|
blob
|
history
diff --git
a/test/ExecutionEngine/test-fp.ll
b/test/ExecutionEngine/test-fp.ll
index cbb5ef6245c8ee0104dfceece5ff6a1e18e3252e..6d32ecbffceb1647ecc6ae38dcd6e6e25222ed16 100644
(file)
--- a/
test/ExecutionEngine/test-fp.ll
+++ b/
test/ExecutionEngine/test-fp.ll
@@
-6,13
+6,15
@@
double %test(double* %DP, double %Arg) {
%X = mul double %W, %W
%Y = div double %X, %X
%Z = rem double %Y, %Y
+ %Z = div double %Z, %W
%Q = add double %Z, %Arg
- store double %Q, double* %DP
+ %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
1
.0)
+ call double %test(double* %X, double
2
.0)
ret int 0
}