summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-04-17 06:09:16 +0000
committerCraig Topper <craig.topper@intel.com>2019-04-17 06:09:16 +0000
commit5ca2e04c7a7f52a64913e16147293f0ca3c84416 (patch)
treea134959079a65548ec36347b048c420bd2a95da9
parent6bf08027384200bf7ee45ccfd5b16fa7511566d0 (diff)
downloadbcm5719-llvm-5ca2e04c7a7f52a64913e16147293f0ca3c84416.tar.gz
bcm5719-llvm-5ca2e04c7a7f52a64913e16147293f0ca3c84416.zip
[X86] Autogenerate complete checks. NFC
llvm-svn: 358556
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-fneg.ll46
1 files changed, 38 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-fneg.ll b/llvm/test/CodeGen/X86/fast-isel-fneg.ll
index 99c728a7366..0c2ce6df0a4 100644
--- a/llvm/test/CodeGen/X86/fast-isel-fneg.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-fneg.ll
@@ -1,20 +1,50 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -fast-isel -fast-isel-abort=1 -mtriple=x86_64-apple-darwin10 | FileCheck %s
; RUN: llc < %s -fast-isel -mtriple=i686-- -mattr=+sse2 | FileCheck --check-prefix=SSE2 %s
-; SSE2: xor
-; SSE2: xor
-; SSE2-NOT: xor
-
-; CHECK-LABEL: doo:
-; CHECK: xor
define double @doo(double %x) nounwind {
+; CHECK-LABEL: doo:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: movq %xmm0, %rax
+; CHECK-NEXT: movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
+; CHECK-NEXT: xorq %rax, %rcx
+; CHECK-NEXT: movq %rcx, %xmm0
+; CHECK-NEXT: retq
+;
+; SSE2-LABEL: doo:
+; SSE2: # %bb.0:
+; SSE2-NEXT: pushl %ebp
+; SSE2-NEXT: movl %esp, %ebp
+; SSE2-NEXT: andl $-8, %esp
+; SSE2-NEXT: subl $8, %esp
+; SSE2-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
+; SSE2-NEXT: xorps {{\.LCPI.*}}, %xmm0
+; SSE2-NEXT: movlps %xmm0, (%esp)
+; SSE2-NEXT: fldl (%esp)
+; SSE2-NEXT: movl %ebp, %esp
+; SSE2-NEXT: popl %ebp
+; SSE2-NEXT: retl
%y = fsub double -0.0, %x
ret double %y
}
-; CHECK-LABEL: foo:
-; CHECK: xor
define float @foo(float %x) nounwind {
+; CHECK-LABEL: foo:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: movd %xmm0, %eax
+; CHECK-NEXT: xorl $2147483648, %eax ## imm = 0x80000000
+; CHECK-NEXT: movd %eax, %xmm0
+; CHECK-NEXT: retq
+;
+; SSE2-LABEL: foo:
+; SSE2: # %bb.0:
+; SSE2-NEXT: pushl %eax
+; SSE2-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
+; SSE2-NEXT: xorps {{\.LCPI.*}}, %xmm0
+; SSE2-NEXT: movss %xmm0, (%esp)
+; SSE2-NEXT: flds (%esp)
+; SSE2-NEXT: popl %eax
+; SSE2-NEXT: retl
%y = fsub float -0.0, %x
ret float %y
}
OpenPOWER on IntegriCloud