summaryrefslogtreecommitdiff
path: root/bootstrap/llvm18/i586-json-test.patch
blob: e72763976aa31fbf10a692aebc1789c0d9d7a9c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- llvm/unittests/Support/JSONTest.cpp.old	2024-06-15 12:21:32.000000000 -0500
+++ llvm/unittests/Support/JSONTest.cpp	2024-07-08 21:09:43.106973458 -0500
@@ -313,6 +313,8 @@
         1.5,
     },
 
+    // Broken by -fexcess-precision=fast.
+#ifndef __i586
     {
         "Integer, not exact double. Stored as int64, convertible.",
         int64_t{0x4000000000000001},
@@ -328,6 +330,7 @@
         int64_t{-0x4000000000000001},
         double{-0x4000000000000000},
     },
+#endif
 
       // PR46470,
       // https://developercommunity.visualstudio.com/content/problem/1093399/incorrect-result-when-printing-6917529027641081856.html