diff options
| author | Michael Munday <munday@ca.ibm.com> | 2016-08-26 11:28:41 -0400 |
|---|---|---|
| committer | Michael Munday <munday@ca.ibm.com> | 2016-08-26 17:23:16 +0000 |
| commit | d2dd0dfda813deb27415962656e7a6496170cef3 (patch) | |
| tree | 67f10e6e7bc8a0e3781d1f26b0e63fd6ea8b4284 /src/cmd/asm | |
| parent | 266b349b2d28bf69f778320adb7e8ecc6bf848cd (diff) | |
| download | go-d2dd0dfda813deb27415962656e7a6496170cef3.tar.xz | |
cmd/internal/obj/s390x: add FIDBR and FIEBR instructions
FIDBR and FIEBR can be used for floating-point to integer rounding.
The relevant functions (Ceil, Floor and Trunc) will be updated
in a future CL.
Change-Id: I5952d67ab29d5ef8923ff1143e17a8d30169d692
Reviewed-on: https://go-review.googlesource.com/27826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/s390x.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/s390x.s b/src/cmd/asm/internal/asm/testdata/s390x.s index e902100dc5..4060f08780 100644 --- a/src/cmd/asm/internal/asm/testdata/s390x.s +++ b/src/cmd/asm/internal/asm/testdata/s390x.s @@ -178,6 +178,8 @@ TEXT main·foo(SB),7,$16-0 // TEXT main.foo(SB), 7, $16-0 FABS F1, F2 // b3100021 FSQRTS F3, F4 // b3140043 FSQRT F5, F15 // b31500f5 + FIEBR $0, F0, F1 // b3570010 + FIDBR $7, F2, F3 // b35f7032 VL (R15), V1 // e710f0000006 VST V1, (R15) // e710f000000e |
