split_s390.sh 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #!/bin/sh
  2. # split_s390.sh -- test -fstack-split for s390
  3. # Copyright (C) 2009-2022 Free Software Foundation, Inc.
  4. # Written by Marcin Kościelnicki <koriakin@0x04.net>.
  5. # This file is part of gold.
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or
  9. # (at your option) any later version.
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  17. # MA 02110-1301, USA.
  18. match()
  19. {
  20. if ! egrep "$1" "$2" >/dev/null 2>&1; then
  21. echo 1>&2 "could not find '$1' in $2"
  22. exit 1
  23. fi
  24. }
  25. nomatch()
  26. {
  27. if egrep "$1" "$2" >/dev/null 2>&1; then
  28. echo 1>&2 "found unexpected '$1' in $2"
  29. exit 1
  30. fi
  31. }
  32. match 'jg.*__morestack>?$' split_s390_z1.stdout
  33. match 'long.*0x00100000$' split_s390_z1.stdout
  34. match 'jg.*__morestack>?$' split_s390_z1_ns.stdout
  35. match 'long.*0x00104000$' split_s390_z1_ns.stdout
  36. match 'ear.*$' split_s390_z2.stdout
  37. match 'jgl.*__morestack>?$' split_s390_z2.stdout
  38. nomatch 'jg .*__morestack>?$' split_s390_z2.stdout
  39. match 'long.*0x00000100$' split_s390_z2.stdout
  40. nomatch 'ear.*$' split_s390_z2_ns.stdout
  41. nomatch 'jgl.*__morestack>?$' split_s390_z2_ns.stdout
  42. match 'jg .*__morestack>?$' split_s390_z2_ns.stdout
  43. match 'long.*0x00004100$' split_s390_z2_ns.stdout
  44. match 'ear.*$' split_s390_z3.stdout
  45. match 'jgl.*__morestack>?$' split_s390_z3.stdout
  46. nomatch 'jg .*__morestack>?$' split_s390_z3.stdout
  47. match 'long.*0x00001000$' split_s390_z3.stdout
  48. nomatch 'ear.*$' split_s390_z3_ns.stdout
  49. nomatch 'jgl.*__morestack>?$' split_s390_z3_ns.stdout
  50. match 'jg .*__morestack>?$' split_s390_z3_ns.stdout
  51. match 'long.*0x00005000$' split_s390_z3_ns.stdout
  52. match 'alfi.*%r1,1048576$' split_s390_z4.stdout
  53. match 'jgl.*__morestack>?$' split_s390_z4.stdout
  54. match 'long.*0x00100000$' split_s390_z4.stdout
  55. match 'alfi.*%r1,1064960$' split_s390_z4_ns.stdout
  56. match 'jgl.*__morestack>?$' split_s390_z4_ns.stdout
  57. match 'long.*0x00104000$' split_s390_z4_ns.stdout
  58. match 'jg.*__morestack>?$' split_s390x_z1.stdout
  59. match 'long.*0x00100000$' split_s390x_z1.stdout
  60. match 'jg.*__morestack>?$' split_s390x_z1_ns.stdout
  61. match 'long.*0x00104000$' split_s390x_z1_ns.stdout
  62. match 'ear.*$' split_s390x_z2.stdout
  63. match 'jgl.*__morestack>?$' split_s390x_z2.stdout
  64. nomatch 'jg .*__morestack>?$' split_s390x_z2.stdout
  65. match 'long.*0x00000100$' split_s390x_z2.stdout
  66. nomatch 'ear.*$' split_s390x_z2_ns.stdout
  67. nomatch 'jgl.*__morestack>?$' split_s390x_z2_ns.stdout
  68. match 'jg .*__morestack>?$' split_s390x_z2_ns.stdout
  69. match 'long.*0x00004100$' split_s390x_z2_ns.stdout
  70. match 'ear.*$' split_s390x_z3.stdout
  71. match 'jgl.*__morestack>?$' split_s390x_z3.stdout
  72. nomatch 'jg .*__morestack>?$' split_s390x_z3.stdout
  73. match 'long.*0x00001000$' split_s390x_z3.stdout
  74. nomatch 'ear.*$' split_s390x_z3_ns.stdout
  75. nomatch 'jgl.*__morestack>?$' split_s390x_z3_ns.stdout
  76. match 'jg .*__morestack>?$' split_s390x_z3_ns.stdout
  77. match 'long.*0x00005000$' split_s390x_z3_ns.stdout
  78. match 'algfi.*%r1,1048576$' split_s390x_z4.stdout
  79. match 'jgl.*__morestack>?$' split_s390x_z4.stdout
  80. match 'long.*0x00100000$' split_s390x_z4.stdout
  81. match 'algfi.*%r1,1064960$' split_s390x_z4_ns.stdout
  82. match 'jgl.*__morestack>?$' split_s390x_z4_ns.stdout
  83. match 'long.*0x00104000$' split_s390x_z4_ns.stdout
  84. match 'larl' split_s390_n1.stdout
  85. match 'larl' split_s390_n1_ns.stdout
  86. match 'larl' split_s390x_n1.stdout
  87. match 'larl' split_s390x_n1_ns.stdout
  88. match 'j.*fn2' split_s390_n2.stdout
  89. match 'j.*fn2' split_s390x_n2.stdout
  90. match 'failed to match' split_s390_n2_ns.stdout
  91. match 'failed to match' split_s390x_n2_ns.stdout
  92. match 'failed to match' split_s390_a1.stdout
  93. match 'failed to match' split_s390x_a1.stdout
  94. match 'brasl.*__morestack>?$' split_s390_a2.stdout
  95. match 'brasl.*__morestack>?$' split_s390x_a2.stdout
  96. match 'cannot mix' split_s390_r.stdout
  97. match 'cannot mix' split_s390x_r.stdout