aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/ret-i64-0.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/ret-i64-0.ll')
-rw-r--r--test/CodeGen/X86/ret-i64-0.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ret-i64-0.ll b/test/CodeGen/X86/ret-i64-0.ll
new file mode 100644
index 0000000000..e62008f101
--- /dev/null
+++ b/test/CodeGen/X86/ret-i64-0.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep xor | count 2
+
+define i64 @foo() {
+ ret i64 0
+}