[pushed] Change if-to-switch-conversion test.

Message ID 44b99509-1ab7-9765-4cb3-850b8294114d@suse.cz
State Committed
Headers
Series [pushed] Change if-to-switch-conversion test. |

Commit Message

Martin Liška Nov. 30, 2021, 1:48 p.m. UTC
  Small update of the test-case, approved by Richi.

Martin

	PR tree-optimization/103278

gcc/testsuite/ChangeLog:

	* gcc.dg/tree-ssa/if-to-switch-5.c: Make the test acceptable by
	targets with no jump-tables.
---
  gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c
index ceeae908821..54771e64e59 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-5.c
@@ -4,8 +4,8 @@ 
  int crud (unsigned char c)
  {
    return (((((((((((int) c == 46) || (int) c == 44)
-		 || (int) c == 58) || (int) c == 59) || (int) c == 60)
-	      || (int) c == 62) || (int) c == 34) || (int) c == 92)
+		 || (int) c == 58) || (int) c == 60) || (int) c == 62)
+	      || (int) c == 64) || (int) c == 34) || (int) c == 92)
  	   || (int) c == 39) != 0);
  }