From 1a82946ea5a98f5e7a7ec416bc83a7cba701e9b8 Mon Sep 17 00:00:00 2001 From: Michael Munday Date: Sun, 20 Mar 2016 19:25:58 -0400 Subject: [PATCH] test/fixedbugs: add s390x case to issue11656 An instruction consisting of all 0s causes an illegal instruction signal on s390x. Since 0s are the default in this test this CL just makes it explicit. Change-Id: Id6e060eed1a588f4b10a4e4861709fcd19b434ac Reviewed-on: https://go-review.googlesource.com/20962 Reviewed-by: Minux Ma Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- test/fixedbugs/issue11656.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fixedbugs/issue11656.go b/test/fixedbugs/issue11656.go index 565e796ed0..93e18225c1 100644 --- a/test/fixedbugs/issue11656.go +++ b/test/fixedbugs/issue11656.go @@ -65,6 +65,8 @@ func f(n int) { binary.BigEndian.PutUint32(ill, 0x00000034) // trap case "mips64le": binary.LittleEndian.PutUint32(ill, 0x00000034) // trap + case "s390x": + binary.BigEndian.PutUint32(ill, 0) // undefined instruction default: // Just leave it as 0 and hope for the best. } -- 2.48.1