summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-14 02:08:23 +0000
committerMatthias Braun <matze@braunis.de>2015-07-14 02:08:23 +0000
commitb457ed33123bc77077b3794a5c72c83b40eec618 (patch)
treed439e01b3ed3ce6d97e38eb7d3ca68fcbf2b1217 /llvm/test
parentae6df27ef40e128faa1ce33ab25076a53be584a4 (diff)
downloadbcm5719-llvm-b457ed33123bc77077b3794a5c72c83b40eec618.tar.gz
bcm5719-llvm-b457ed33123bc77077b3794a5c72c83b40eec618.zip
X86: Check output of x86 copysignl testcase.
This makes the changes in an upcoming patch visible. llvm-svn: 242106
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/pr13577.ll17
1 files changed, 16 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/pr13577.ll b/llvm/test/CodeGen/X86/pr13577.ll
index faaec262cb9..090c7262d6e 100644
--- a/llvm/test/CodeGen/X86/pr13577.ll
+++ b/llvm/test/CodeGen/X86/pr13577.ll
@@ -1,5 +1,20 @@
-; RUN: llc < %s -march=x86-64
+; RUN: llc < %s -march=x86-64 | FileCheck %s
+; CHECK-LABEL: LCPI0_0:
+; CHECK-NEXT: .long 4286578688
+; CHECK-LABEL: LCPI0_1:
+; CHECK-NEXT: .long 2139095040
+
+; CHECK-LABEL: foo:
+; CHECK: movq {{.*}}, %rax
+; CHECK: shlq $48, %rax
+; CHECK: sets %al
+; CHECK: testb %al, %al
+; CHECK: flds LCPI0_0(%rip)
+; CHECK: flds LCPI0_1(%rip)
+; CHECK: fcmovne %st(1), %st(0)
+; CHECK: fstp %st(1)
+; CHECK: retq
define x86_fp80 @foo(x86_fp80 %a) {
%1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
ret x86_fp80 %1
OpenPOWER on IntegriCloud