OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb18656
)
new testcase
author
Chris Lattner
<sabre@nondot.org>
Sun, 25 Feb 2007 08:23:01 +0000
(08:23 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 25 Feb 2007 08:23:01 +0000
(08:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34583
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/fp-stack-ret.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/CodeGen/X86/fp-stack-ret.ll
b/test/CodeGen/X86/fp-stack-ret.ll
new file mode 100644
(file)
index 0000000..
d688f94
--- /dev/null
+++ b/
test/CodeGen/X86/fp-stack-ret.ll
@@ -0,0
+1,12
@@
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | grep fldl &&
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | not grep xmm &&
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -march=x86 | not grep 'sub.*esp'
+
+; These testcases shouldn't require loading into an XMM register then storing
+; to memory, then reloading into an FPStack reg.
+
+define double @test1(double *%P) {
+ %A = load double* %P
+ ret double %A
+}
+