diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-21 00:45:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-21 00:45:36 +0000 |
commit | 01426e1a2755b05330b55b93f91887f5ff816adb (patch) | |
tree | ae9f16c4053f9635bd0a87ff06effd04b30c55d1 /test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll | |
parent | 09e8ca8a582bb67ef290d77d9b9441716dd6ba2e (diff) | |
download | external_llvm-01426e1a2755b05330b55b93f91887f5ff816adb.zip external_llvm-01426e1a2755b05330b55b93f91887f5ff816adb.tar.gz external_llvm-01426e1a2755b05330b55b93f91887f5ff816adb.tar.bz2 |
Fix gcc.c-torture/compile/920520-1.c by inserting bitconverts
for strange asm conditions earlier. In this case, we have a
double being passed in an integer reg class. Convert to like
sized integer register so that we allocate the right number
for the class (two i32's for the f64 in this case).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll')
-rw-r--r-- | test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll | 11 |
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..33e8c49 --- /dev/null +++ b/test/CodeGen/X86/2008-10-20-AsmDoubleInI32.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86 +; RUN: llvm-as < %s | llc -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 +} + |