Side by Side Diff: src/pkg/math/fabs_amd64.s
Issue 4104041 :
correctly compile -0 floating point constants
Patch Set: code review 4104041: correctly compile -0 floating point constants
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/cmd/cc/lexbody
src/cmd/cc/pswt.c
src/cmd/gc/mparith3.c
src/cmd/gc/obj.c
src/cmd/ld/lib.c
src/lib9/fmt/fltfmt.c
src/pkg/exp/eval/expr_test.go
src/pkg/math/all_test.go
src/pkg/math/fabs_amd64.s
src/pkg/math/sincos_amd64.s
src/pkg/runtime/softfloat64_test.go
test/cmplxdivide.c
test/cmplxdivide.go
test/cmplxdivide1.go
OLD NEW
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // func Fabs(x float64) float64 5 // func Fabs(x float64) float64
6 TEXT ·Fabs(SB),7,$0 6 TEXT ·Fabs(SB),7,$0
7 » MOVQ $(1<<63), BX 7 » MOVSD $-0.0, X0
8 » MOVQ BX, X0 // movsd $(-0.0), x0
9 MOVSD x+0(FP), X1 8 MOVSD x+0(FP), X1
10 ANDNPD X1, X0 9 ANDNPD X1, X0
11 MOVSD X0, r+8(FP) 10 MOVSD X0, r+8(FP)
12 RET 11 RET
OLD NEW