arith_s390x_test.go 775 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build ignore
  5. // +build ignore
  6. package big
  7. import (
  8. "testing"
  9. )
  10. // Tests whether the non vector routines are working, even when the tests are run on a
  11. // vector-capable machine
  12. func TestFunVVnovec(t *testing.T) {
  13. if hasVX == true {
  14. for _, a := range sumVV {
  15. arg := a
  16. testFunVV(t, "addVV_novec", addVV_novec, arg)
  17. arg = argVV{a.z, a.y, a.x, a.c}
  18. testFunVV(t, "addVV_novec symmetric", addVV_novec, arg)
  19. arg = argVV{a.x, a.z, a.y, a.c}
  20. testFunVV(t, "subVV_novec", subVV_novec, arg)
  21. arg = argVV{a.y, a.z, a.x, a.c}
  22. testFunVV(t, "subVV_novec symmetric", subVV_novec, arg)
  23. }
  24. }
  25. }