The recent commit 00a6254 "Stop traping on sNaN in builtin_isnan" changed the lowering in constrained FP mode of builtin_isnan from an FP comparison to integer operations to avoid trapping.
SystemZ has a special instruction "Test Data Class" which is the preferred way to do this check. This patch adds a new target hook "emit_FPConstrained_builtin_isnan()" that lets SystemZ emit the s390_tdc intrinsic instead.