projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94af414
)
Initial fp test
author
Chris Lattner
<sabre@nondot.org>
Wed, 25 Dec 2002 05:14:29 +0000
(
05:14
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 25 Dec 2002 05:14:29 +0000
(
05:14
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5155
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/ExecutionEngine/test-fp.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/ExecutionEngine/test-fp.ll
b/test/ExecutionEngine/test-fp.ll
new file mode 100644
(file)
index 0000000..
7e60771
--- /dev/null
+++ b/
test/ExecutionEngine/test-fp.ll
@@ -0,0
+1,17
@@
+
+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
+}