From: Alexandre Oliva Date: Sat, 4 Dec 2021 03:17:16 +0000 (-0300) Subject: [PR103028] test ifcvt trap_if seq more strictly after reload X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daca416fc2816a5e481b26c8d2010127101d77ce;p=test_jj.git [PR103028] test ifcvt trap_if seq more strictly after reload When -fif-conversion2 is enabled, we attempt to replace conditional branches around unconditional traps with conditional traps. That canonicalizes compares, which may change an immediate that barely fits into one that doesn't. The compare for the trap is first checked using the predicates of cbranch predicates, and then, compare and conditional trap insns are emitted and recognized. In the failing s390x testcase, i <=u 0xffff_ffff is canonicalized into i t) { + unsigned long long ii; + asm("":"=g"(ii):"0"(i)); + if ((ii <= t)) + __builtin_trap(); + return x; + } + + return 0; +}