john-brawn-arm wrote: Simple example where setting HasStrictFP=true without doing the above gives wrong results: ``` int fetestexcept( int excepts ); #define FE_DIVBYZERO 0x04
int fn(float x) { #pragma STDC FENV_ACCESS ON x / 0; return fetestexcept(FE_DIVBYZERO); } ``` With --target=aarch64-none-elf we get a divide instruction and so return FE_DIVBYZERO, with --target=arm-non-eabi we get no divide instruction and return 0. https://github.com/llvm/llvm-project/pull/137101 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits