aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2009-03-09-SpillerBug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-09 19:00:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-09 19:00:05 +0000
commit0d8fc52ed37af612dae62868727b840b8936efb2 (patch)
tree544ac00c852b55e7d9c07efd5587827164dd2dd7 /test/CodeGen/X86/2009-03-09-SpillerBug.ll
parentc785b4f4a613f3e553651f7c0dbed4c6d8b5af47 (diff)
downloadexternal_llvm-0d8fc52ed37af612dae62868727b840b8936efb2.zip
external_llvm-0d8fc52ed37af612dae62868727b840b8936efb2.tar.gz
external_llvm-0d8fc52ed37af612dae62868727b840b8936efb2.tar.bz2
Yet another case where the spiller marked two uses of the same register on the same instruction as kill. This fixes PR3706.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2009-03-09-SpillerBug.ll')
-rw-r--r--test/CodeGen/X86/2009-03-09-SpillerBug.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-03-09-SpillerBug.ll b/test/CodeGen/X86/2009-03-09-SpillerBug.ll
new file mode 100644
index 0000000..14bdcc3
--- /dev/null
+++ b/test/CodeGen/X86/2009-03-09-SpillerBug.ll
@@ -0,0 +1,18 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-pc-linux-gnu
+; PR3706
+
+define void @__mulxc3(x86_fp80 %b) nounwind {
+entry:
+ %call = call x86_fp80 @y(x86_fp80* null, x86_fp80* null) ; <x86_fp80> [#uses=0]
+ %cmp = fcmp ord x86_fp80 %b, 0xK00000000000000000000 ; <i1> [#uses=1]
+ %sub = sub x86_fp80 %b, %b ; <x86_fp80> [#uses=1]
+ %cmp7 = fcmp uno x86_fp80 %sub, 0xK00000000000000000000 ; <i1> [#uses=1]
+ %and12 = and i1 %cmp7, %cmp ; <i1> [#uses=1]
+ %and = zext i1 %and12 to i32 ; <i32> [#uses=1]
+ %conv9 = sitofp i32 %and to x86_fp80 ; <x86_fp80> [#uses=1]
+ store x86_fp80 %conv9, x86_fp80* null
+ store x86_fp80 %b, x86_fp80* null
+ ret void
+}
+
+declare x86_fp80 @y(x86_fp80*, x86_fp80*)