summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/movmsk.ll
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-15 02:07:20 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-15 02:07:20 +0000
commitca072a39778933df4264ae393bd0ca797db59df6 (patch)
treec5b3b1a5f67f12e4aefda14538802d74369c6d9e /test/CodeGen/X86/movmsk.ll
parent01d426e0e16aab075c1b0c03552e1cc9b5f3cef1 (diff)
downloadllvm-ca072a39778933df4264ae393bd0ca797db59df6.tar.gz
llvm-ca072a39778933df4264ae393bd0ca797db59df6.tar.bz2
llvm-ca072a39778933df4264ae393bd0ca797db59df6.tar.xz
Don't try to form FGETSIGN after legalization; it is possible in some cases, but the existing code can't do it correctly. PR11570.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/movmsk.ll')
-rw-r--r--test/CodeGen/X86/movmsk.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/movmsk.ll b/test/CodeGen/X86/movmsk.ll
index 2368548bfa..928ad037c1 100644
--- a/test/CodeGen/X86/movmsk.ll
+++ b/test/CodeGen/X86/movmsk.ll
@@ -78,6 +78,22 @@ entry:
ret i32 %shr.i
}
+; PR11570
+define void @float_call_signbit(double %n) {
+entry:
+; FIXME: This should also use movmskps; we don't form the FGETSIGN node
+; in this case, though.
+; CHECK: float_call_signbit:
+; CHECK: movd %xmm0, %rdi
+; FIXME
+ %t0 = bitcast double %n to i64
+ %tobool.i.i.i.i = icmp slt i64 %t0, 0
+ tail call void @float_call_signbit_callee(i1 zeroext %tobool.i.i.i.i)
+ ret void
+}
+declare void @float_call_signbit_callee(i1 zeroext)
+
+
; rdar://10247336
; movmskp{s|d} only set low 4/2 bits, high bits are known zero