Skip to content

Commit b93730c

Browse files
winstonalloantoyo
authored andcommitted
Update patch to disable 128-bit integers in tests
1 parent e5d7ef4 commit b93730c

File tree

1 file changed

+40
-44
lines changed

1 file changed

+40
-44
lines changed
Lines changed: 40 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,30 @@
1-
From d2e88f702bd04cdfc0e63941c2d831adb5a4bf42 Mon Sep 17 00:00:00 2001
2-
From: Antoni Boucher <bouanto@zoho.com>
3-
Date: Wed, 8 Oct 2025 13:51:23 -0400
1+
From 9414c11a74273df23fa30ab2e71fca86dfa2e039 Mon Sep 17 00:00:00 2001
2+
From: winstonallo <arthur@biedcharreton.com>
3+
Date: Mon, 13 Oct 2025 16:17:36 +0200
44
Subject: [PATCH] Disable 128-bit integers for testing purposes
55

66
---
7-
gcc/config/aarch64/aarch64-jit.cc | 4 ++--
8-
gcc/config/i386/i386-jit.cc | 4 ++--
9-
gcc/jit/jit-playback.cc | 8 ++++----
10-
3 files changed, 8 insertions(+), 8 deletions(-)
7+
gcc/jit/dummy-frontend.cc | 3 ++-
8+
gcc/jit/jit-playback.cc | 8 ++++----
9+
gcc/jit/jit-target.cc | 4 ++--
10+
3 files changed, 8 insertions(+), 7 deletions(-)
1111

12-
diff --git a/gcc/config/aarch64/aarch64-jit.cc b/gcc/config/aarch64/aarch64-jit.cc
13-
index 26ed3ea485a..64efae92c3a 100644
14-
--- a/gcc/config/aarch64/aarch64-jit.cc
15-
+++ b/gcc/config/aarch64/aarch64-jit.cc
16-
@@ -58,11 +58,11 @@ aarch64_jit_register_target_info (void)
17-
}
18-
#endif
19-
20-
- if (targetm.scalar_mode_supported_p (TImode))
21-
+ /*if (targetm.scalar_mode_supported_p (TImode))
12+
diff --git a/gcc/jit/dummy-frontend.cc b/gcc/jit/dummy-frontend.cc
13+
index 773e35acfd1..919393d6bc8 100644
14+
--- a/gcc/jit/dummy-frontend.cc
15+
+++ b/gcc/jit/dummy-frontend.cc
16+
@@ -1333,7 +1333,8 @@ recording::type* tree_type_to_jit_type (tree type)
17+
else if (type == unsigned_intTI_type_node)
2218
{
23-
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_UINT128_T);
24-
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_INT128_T);
25-
- }
26-
+ }*/
27-
28-
if (float16_type_node != NULL && TYPE_PRECISION(float16_type_node) == 16)
29-
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_FLOAT16);
30-
diff --git a/gcc/config/i386/i386-jit.cc b/gcc/config/i386/i386-jit.cc
31-
index 3f14c29372e..23861d470d9 100644
32-
--- a/gcc/config/i386/i386-jit.cc
33-
+++ b/gcc/config/i386/i386-jit.cc
34-
@@ -59,11 +59,11 @@ ix86_jit_register_target_info (void)
19+
// TODO: check if this is the correct type.
20+
- return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_UINT128_T);
21+
+ return new recording::memento_of_get_type (&target_builtins_ctxt,
22+
+ GCC_JIT_TYPE_VOID);
3523
}
36-
#endif
37-
38-
- if (targetm.scalar_mode_supported_p (TImode))
39-
+ /*if (targetm.scalar_mode_supported_p (TImode))
24+
else if (INTEGRAL_TYPE_P (type))
4025
{
41-
jit_target_add_supported_target_dependent_type (GCC_JIT_TYPE_UINT128_T);
42-
jit_target_add_supported_target_dependent_type (GCC_JIT_TYPE_INT128_T);
43-
- }
44-
+ }*/
45-
46-
if (float16_type_node != NULL && TYPE_PRECISION(float16_type_node) == 16)
47-
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_FLOAT16);
4826
diff --git a/gcc/jit/jit-playback.cc b/gcc/jit/jit-playback.cc
49-
index 4da3156af74..2593288c5ee 100644
27+
index e41408b635c..093728b6ff6 100644
5028
--- a/gcc/jit/jit-playback.cc
5129
+++ b/gcc/jit/jit-playback.cc
5230
@@ -250,8 +250,8 @@ get_tree_node_for_type (enum gcc_jit_types type_)
@@ -56,7 +34,7 @@ index 4da3156af74..2593288c5ee 100644
5634
- if (targetm.scalar_mode_supported_p (TImode))
5735
- return uint128_type_node;
5836
+ /*if (targetm.scalar_mode_supported_p (TImode))
59-
+ return uint128_type_node;*/
37+
+ return uint128_type_node;*/
6038

6139
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
6240
type_);
@@ -67,10 +45,28 @@ index 4da3156af74..2593288c5ee 100644
6745
- if (targetm.scalar_mode_supported_p (TImode))
6846
- return intTI_type_node;
6947
+ /*if (targetm.scalar_mode_supported_p (TImode))
70-
+ return intTI_type_node;*/
48+
+ return intTI_type_node;*/
7149

7250
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
7351
type_);
52+
diff --git a/gcc/jit/jit-target.cc b/gcc/jit/jit-target.cc
53+
index 031b7e79591..16983301ce9 100644
54+
--- a/gcc/jit/jit-target.cc
55+
+++ b/gcc/jit/jit-target.cc
56+
@@ -39,11 +39,11 @@ along with GCC; see the file COPYING3. If not see
57+
void
58+
jit_target_dependent_types_init()
59+
{
60+
- if (targetm.scalar_mode_supported_p (TImode))
61+
+ /*if (targetm.scalar_mode_supported_p (TImode))
62+
{
63+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_UINT128_T);
64+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_INT128_T);
65+
- }
66+
+ }*/
67+
68+
if (float16_type_node != NULL && TYPE_PRECISION(float16_type_node) == 16)
69+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_FLOAT16);
7470
--
75-
2.51.0
71+
2.51.1
7672

0 commit comments

Comments
 (0)