aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-23 20:21:29 +0000
committerDan Gohman <gohman@apple.com>2008-04-23 20:21:29 +0000
commit3dc34f682dfdfbf75c2b883e21a953d41df4f3a0 (patch)
tree0ec9c9abcf4fd571bb49df7b3ca9af7228a5acb5 /test/CodeGen/Generic
parent6829157f49641c19bc77e7ca5ffc16f2d91c74f2 (diff)
Add support to codegen for getresult instructions with undef operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r--test/CodeGen/Generic/getresult-undef.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/getresult-undef.ll b/test/CodeGen/Generic/getresult-undef.ll
new file mode 100644
index 0000000000..7905ff52ef
--- /dev/null
+++ b/test/CodeGen/Generic/getresult-undef.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc
+
+define double @foo() {
+ %t = getresult {double, double} undef, 1
+ ret double %t
+}