aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll')
-rw-r--r--test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll b/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll
new file mode 100644
index 0000000..353d1c7
--- /dev/null
+++ b/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=x86
+; RUN: llc < %s -march=x86-64
+
+; from gcc.c-torture/compile/920520-1.c
+
+define i32 @g() nounwind {
+entry:
+ call void asm sideeffect "$0", "r"(double 1.500000e+00) nounwind
+ ret i32 0
+}
+