summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2010-01-15 11:29:26 +0000
committerJay Foad <jay.foad@gmail.com>2010-01-15 11:29:26 +0000
commit306f155a84063d01415d04a89b76cc45d12baebe (patch)
tree9cc9dd07a8adf985ba03a150007f8c527b02495a
parent38836f0f39527cd95c6f3c7e7fa82728fe8a4812 (diff)
downloadbcm5719-llvm-306f155a84063d01415d04a89b76cc45d12baebe.tar.gz
bcm5719-llvm-306f155a84063d01415d04a89b76cc45d12baebe.zip
Test case for http://llvm.org/PR6028.
llvm-svn: 93511
-rw-r--r--llvm/test/ExecutionEngine/2010-01-15-UndefValue.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/2010-01-15-UndefValue.ll b/llvm/test/ExecutionEngine/2010-01-15-UndefValue.ll
new file mode 100644
index 00000000000..7d646ebdeb9
--- /dev/null
+++ b/llvm/test/ExecutionEngine/2010-01-15-UndefValue.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as %s -o %t.bc
+; RUN: lli -force-interpreter=true %t.bc
+
+define i32 @main() {
+ %a = add i32 0, undef
+ %b = add float 0.0, undef
+ %c = add double 0.0, undef
+ ret i32 0
+}
OpenPOWER on IntegriCloud