summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/return_zeroext_i2.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
commit67c32a98315f785a9ec9d531c1f571a0196c7463 (patch)
tree4abb9cbeecc7901726dd0b4a37369596c852e9ef /test/CodeGen/X86/return_zeroext_i2.ll
parent9f61947910e6ab40de38e6b4034751ef1513200f (diff)
downloadsrc-test-67c32a98315f785a9ec9d531c1f571a0196c7463.tar.gz
src-test-67c32a98315f785a9ec9d531c1f571a0196c7463.zip
Notes
Diffstat (limited to 'test/CodeGen/X86/return_zeroext_i2.ll')
-rw-r--r--test/CodeGen/X86/return_zeroext_i2.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/return_zeroext_i2.ll b/test/CodeGen/X86/return_zeroext_i2.ll
new file mode 100644
index 0000000000000..d535b0c41267a
--- /dev/null
+++ b/test/CodeGen/X86/return_zeroext_i2.ll
@@ -0,0 +1,7 @@
+; RUN: llc -mtriple=i386-pc-win32 < %s | FileCheck %s
+; Check that the testcase does not crash
+define zeroext i2 @crash () {
+ ret i2 0
+}
+; CHECK: xorl %eax, %eax
+; CHECK-NEXT: retl