From daca416fc2816a5e481b26c8d2010127101d77ce Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 4 Dec 2021 00:17:16 -0300 Subject: [PATCH] [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; +} -- 2.7.4