[llvm] r242106 - X86: Check output of x86 copysignl testcase.

Matthias Braun matze at braunis.de
Mon Jul 13 19:08:24 PDT 2015


Author: matze
Date: Mon Jul 13 21:08:23 2015
New Revision: 242106

URL: http://llvm.org/viewvc/llvm-project?rev=242106&view=rev
Log:
X86: Check output of x86 copysignl testcase.

This makes the changes in an upcoming patch visible.

Modified:
    llvm/trunk/test/CodeGen/X86/pr13577.ll

Modified: llvm/trunk/test/CodeGen/X86/pr13577.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr13577.ll?rev=242106&r1=242105&r2=242106&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr13577.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr13577.ll Mon Jul 13 21:08:23 2015
@@ -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





More information about the llvm-commits mailing list