[flang] Enable LoongArch for x86CompatibleBehavior in floating point flag
authorWeining Lu <luweining@loongson.cn>
Wed, 8 Feb 2023 01:07:34 +0000 (09:07 +0800)
committerWeining Lu <luweining@loongson.cn>
Wed, 8 Feb 2023 01:56:48 +0000 (09:56 +0800)
commit9bfe859e6b46b88535c309e045d4ecb4e908072a
treeb217f425474c7f4b0307049d460c46d379a1ebeb
parent720f728d4f9f7863101844d6c30c645fb58a4986
[flang] Enable LoongArch for x86CompatibleBehavior in floating point flag

Similar to D138503 for RISC-V which fix the flang-OldUnit test failure:

```
.../llvm-project/flang/unittests/Evaluate/real.cpp:504: FAIL:
FlagsToBits(prod.flags) == 0x18, not 0x10
0 0x800001 * 0xbf7ffffe
```

With this patch applied, `check-flang` all pass.

Reviewed By: vzakhari

Differential Revision: https://reviews.llvm.org/D143132
flang/include/flang/Evaluate/target.h