Skip to content

Commit 5ec1588

Browse files
Addressed the review comments
1 parent a487ace commit 5ec1588

File tree

1 file changed

+0
-96
lines changed

1 file changed

+0
-96
lines changed

llvm/test/CodeGen/X86/isel-fneg.ll

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
; RUN: llc < %s -mtriple=i686-linux-gnu -fast-isel | FileCheck %s --check-prefixes=X86,FASTISEL-X86
33
; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel=0 -fast-isel=0 | FileCheck %s --check-prefixes=X86,SDAG-X86
44
; DISABLED: llc < %s -mtriple=i686-linux-gnu -global-isel=1 -global-isel-abort=2 | FileCheck %s --check-prefixes=X86,GISEL-X86
5-
; RUN: llc < %s -mtriple=x86_64-linux-gnu -fast-isel | FileCheck %s --check-prefixes=X64,FASTISEL-X64
6-
; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel=0 -fast-isel=0 | FileCheck %s --check-prefixes=X64,SDAG-X64
7-
; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel=1 -global-isel-abort=2 | FileCheck %s --check-prefixes=X64,GISEL-X64
85
; RUN: llc < %s -mtriple=i686-linux-gnu -fast-isel -mattr=+sse | FileCheck %s --check-prefixes=SSE-X86,FASTISEL-SSE-X86
96
; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel=0 -fast-isel=0 -mattr=+sse | FileCheck %s --check-prefixes=SSE-X86,SDAG-SSE-X86
107
; DISABLED: llc < %s -mtriple=i686-linux-gnu -global-isel=1 -global-isel-abort=2 -mattr=+sse | FileCheck %s --check-prefixes=SSE-X86,GISEL-SSE-X86
@@ -19,27 +16,6 @@ define double @fneg_f64(double %x) nounwind {
1916
; X86-NEXT: fchs
2017
; X86-NEXT: retl
2118
;
22-
; FASTISEL-X64-LABEL: fneg_f64:
23-
; FASTISEL-X64: # %bb.0:
24-
; FASTISEL-X64-NEXT: movq %xmm0, %rax
25-
; FASTISEL-X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
26-
; FASTISEL-X64-NEXT: xorq %rax, %rcx
27-
; FASTISEL-X64-NEXT: movq %rcx, %xmm0
28-
; FASTISEL-X64-NEXT: retq
29-
;
30-
; SDAG-X64-LABEL: fneg_f64:
31-
; SDAG-X64: # %bb.0:
32-
; SDAG-X64-NEXT: xorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
33-
; SDAG-X64-NEXT: retq
34-
;
35-
; GISEL-X64-LABEL: fneg_f64:
36-
; GISEL-X64: # %bb.0:
37-
; GISEL-X64-NEXT: movabsq $-9223372036854775808, %rax # imm = 0x8000000000000000
38-
; GISEL-X64-NEXT: movq %xmm0, %rcx
39-
; GISEL-X64-NEXT: xorq %rax, %rcx
40-
; GISEL-X64-NEXT: movq %rcx, %xmm0
41-
; GISEL-X64-NEXT: retq
42-
;
4319
; SSE-X86-LABEL: fneg_f64:
4420
; SSE-X86: # %bb.0:
4521
; SSE-X86-NEXT: fldl {{[0-9]+}}(%esp)
@@ -77,25 +53,6 @@ define float @fneg_f32(float %x) nounwind {
7753
; X86-NEXT: fchs
7854
; X86-NEXT: retl
7955
;
80-
; FASTISEL-X64-LABEL: fneg_f32:
81-
; FASTISEL-X64: # %bb.0:
82-
; FASTISEL-X64-NEXT: movd %xmm0, %eax
83-
; FASTISEL-X64-NEXT: xorl $2147483648, %eax # imm = 0x80000000
84-
; FASTISEL-X64-NEXT: movd %eax, %xmm0
85-
; FASTISEL-X64-NEXT: retq
86-
;
87-
; SDAG-X64-LABEL: fneg_f32:
88-
; SDAG-X64: # %bb.0:
89-
; SDAG-X64-NEXT: xorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
90-
; SDAG-X64-NEXT: retq
91-
;
92-
; GISEL-X64-LABEL: fneg_f32:
93-
; GISEL-X64: # %bb.0:
94-
; GISEL-X64-NEXT: movd %xmm0, %eax
95-
; GISEL-X64-NEXT: addl $-2147483648, %eax # imm = 0x80000000
96-
; GISEL-X64-NEXT: movd %eax, %xmm0
97-
; GISEL-X64-NEXT: retq
98-
;
9956
; SSE-X86-LABEL: fneg_f32:
10057
; SSE-X86: # %bb.0:
10158
; SSE-X86-NEXT: pushl %eax
@@ -138,30 +95,6 @@ define void @fneg_f64_mem(ptr %x, ptr %y) nounwind {
13895
; X86-NEXT: fstpl (%eax)
13996
; X86-NEXT: retl
14097
;
141-
; FASTISEL-X64-LABEL: fneg_f64_mem:
142-
; FASTISEL-X64: # %bb.0:
143-
; FASTISEL-X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
144-
; FASTISEL-X64-NEXT: movq %xmm0, %rax
145-
; FASTISEL-X64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
146-
; FASTISEL-X64-NEXT: xorq %rax, %rcx
147-
; FASTISEL-X64-NEXT: movq %rcx, %xmm0
148-
; FASTISEL-X64-NEXT: movq %xmm0, (%rsi)
149-
; FASTISEL-X64-NEXT: retq
150-
;
151-
; SDAG-X64-LABEL: fneg_f64_mem:
152-
; SDAG-X64: # %bb.0:
153-
; SDAG-X64-NEXT: movabsq $-9223372036854775808, %rax # imm = 0x8000000000000000
154-
; SDAG-X64-NEXT: xorq (%rdi), %rax
155-
; SDAG-X64-NEXT: movq %rax, (%rsi)
156-
; SDAG-X64-NEXT: retq
157-
;
158-
; GISEL-X64-LABEL: fneg_f64_mem:
159-
; GISEL-X64: # %bb.0:
160-
; GISEL-X64-NEXT: movabsq $-9223372036854775808, %rax # imm = 0x8000000000000000
161-
; GISEL-X64-NEXT: xorq (%rdi), %rax
162-
; GISEL-X64-NEXT: movq %rax, (%rsi)
163-
; GISEL-X64-NEXT: retq
164-
;
16598
; SSE-X86-LABEL: fneg_f64_mem:
16699
; SSE-X86: # %bb.0:
167100
; SSE-X86-NEXT: movl {{[0-9]+}}(%esp), %eax
@@ -210,29 +143,6 @@ define void @fneg_f32_mem(ptr %x, ptr %y) nounwind {
210143
; X86-NEXT: movl %edx, (%eax)
211144
; X86-NEXT: retl
212145
;
213-
; FASTISEL-X64-LABEL: fneg_f32_mem:
214-
; FASTISEL-X64: # %bb.0:
215-
; FASTISEL-X64-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
216-
; FASTISEL-X64-NEXT: movd %xmm0, %eax
217-
; FASTISEL-X64-NEXT: xorl $2147483648, %eax # imm = 0x80000000
218-
; FASTISEL-X64-NEXT: movd %eax, %xmm0
219-
; FASTISEL-X64-NEXT: movd %xmm0, (%rsi)
220-
; FASTISEL-X64-NEXT: retq
221-
;
222-
; SDAG-X64-LABEL: fneg_f32_mem:
223-
; SDAG-X64: # %bb.0:
224-
; SDAG-X64-NEXT: movl $-2147483648, %eax # imm = 0x80000000
225-
; SDAG-X64-NEXT: xorl (%rdi), %eax
226-
; SDAG-X64-NEXT: movl %eax, (%rsi)
227-
; SDAG-X64-NEXT: retq
228-
;
229-
; GISEL-X64-LABEL: fneg_f32_mem:
230-
; GISEL-X64: # %bb.0:
231-
; GISEL-X64-NEXT: movl $-2147483648, %eax # imm = 0x80000000
232-
; GISEL-X64-NEXT: xorl (%rdi), %eax
233-
; GISEL-X64-NEXT: movl %eax, (%rsi)
234-
; GISEL-X64-NEXT: retq
235-
;
236146
; FASTISEL-SSE-X86-LABEL: fneg_f32_mem:
237147
; FASTISEL-SSE-X86: # %bb.0:
238148
; FASTISEL-SSE-X86-NEXT: movl {{[0-9]+}}(%esp), %eax
@@ -286,12 +196,6 @@ define x86_fp80 @test_fp80(x86_fp80 %a) nounwind {
286196
; X86-NEXT: fchs
287197
; X86-NEXT: retl
288198
;
289-
; X64-LABEL: test_fp80:
290-
; X64: # %bb.0:
291-
; X64-NEXT: fldt {{[0-9]+}}(%rsp)
292-
; X64-NEXT: fchs
293-
; X64-NEXT: retq
294-
;
295199
; SSE-X86-LABEL: test_fp80:
296200
; SSE-X86: # %bb.0:
297201
; SSE-X86-NEXT: fldt {{[0-9]+}}(%esp)

0 commit comments

Comments
 (0)