Skip to content

Commit 5ca2e04

Browse files
committed
[X86] Autogenerate complete checks. NFC
llvm-svn: 358556
1 parent 6bf0802 commit 5ca2e04

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed
Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc < %s -fast-isel -fast-isel-abort=1 -mtriple=x86_64-apple-darwin10 | FileCheck %s
23
; RUN: llc < %s -fast-isel -mtriple=i686-- -mattr=+sse2 | FileCheck --check-prefix=SSE2 %s
34

4-
; SSE2: xor
5-
; SSE2: xor
6-
; SSE2-NOT: xor
7-
8-
; CHECK-LABEL: doo:
9-
; CHECK: xor
105
define double @doo(double %x) nounwind {
6+
; CHECK-LABEL: doo:
7+
; CHECK: ## %bb.0:
8+
; CHECK-NEXT: movq %xmm0, %rax
9+
; CHECK-NEXT: movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
10+
; CHECK-NEXT: xorq %rax, %rcx
11+
; CHECK-NEXT: movq %rcx, %xmm0
12+
; CHECK-NEXT: retq
13+
;
14+
; SSE2-LABEL: doo:
15+
; SSE2: # %bb.0:
16+
; SSE2-NEXT: pushl %ebp
17+
; SSE2-NEXT: movl %esp, %ebp
18+
; SSE2-NEXT: andl $-8, %esp
19+
; SSE2-NEXT: subl $8, %esp
20+
; SSE2-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
21+
; SSE2-NEXT: xorps {{\.LCPI.*}}, %xmm0
22+
; SSE2-NEXT: movlps %xmm0, (%esp)
23+
; SSE2-NEXT: fldl (%esp)
24+
; SSE2-NEXT: movl %ebp, %esp
25+
; SSE2-NEXT: popl %ebp
26+
; SSE2-NEXT: retl
1127
%y = fsub double -0.0, %x
1228
ret double %y
1329
}
1430

15-
; CHECK-LABEL: foo:
16-
; CHECK: xor
1731
define float @foo(float %x) nounwind {
32+
; CHECK-LABEL: foo:
33+
; CHECK: ## %bb.0:
34+
; CHECK-NEXT: movd %xmm0, %eax
35+
; CHECK-NEXT: xorl $2147483648, %eax ## imm = 0x80000000
36+
; CHECK-NEXT: movd %eax, %xmm0
37+
; CHECK-NEXT: retq
38+
;
39+
; SSE2-LABEL: foo:
40+
; SSE2: # %bb.0:
41+
; SSE2-NEXT: pushl %eax
42+
; SSE2-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
43+
; SSE2-NEXT: xorps {{\.LCPI.*}}, %xmm0
44+
; SSE2-NEXT: movss %xmm0, (%esp)
45+
; SSE2-NEXT: flds (%esp)
46+
; SSE2-NEXT: popl %eax
47+
; SSE2-NEXT: retl
1848
%y = fsub float -0.0, %x
1949
ret float %y
2050
}

0 commit comments

Comments
 (0)