Skip to content

Commit 619c2e3

Browse files
winstonalloantoyo
authored andcommitted
Update patch to disable 128-bit integers in tests
1 parent d17eb32 commit 619c2e3

File tree

1 file changed

+28
-48
lines changed

1 file changed

+28
-48
lines changed
Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,15 @@
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 e52b7a97f7114d79b0c2ec2860ca669730c5ffbe Mon Sep 17 00:00:00 2001
2+
From: winstonallo <arthurbiedchar@gmail.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/jit-playback.cc | 8 ++++----
8+
gcc/jit/jit-target.cc | 4 ++--
9+
2 files changed, 6 insertions(+), 6 deletions(-)
1110

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))
22-
{
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)
35-
}
36-
#endif
37-
38-
- if (targetm.scalar_mode_supported_p (TImode))
39-
+ /*if (targetm.scalar_mode_supported_p (TImode))
40-
{
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);
4811
diff --git a/gcc/jit/jit-playback.cc b/gcc/jit/jit-playback.cc
49-
index 4da3156af74..2593288c5ee 100644
12+
index 4da3156af74..e6c88e9c6f1 100644
5013
--- a/gcc/jit/jit-playback.cc
5114
+++ b/gcc/jit/jit-playback.cc
5215
@@ -250,8 +250,8 @@ get_tree_node_for_type (enum gcc_jit_types type_)
@@ -56,7 +19,7 @@ index 4da3156af74..2593288c5ee 100644
5619
- if (targetm.scalar_mode_supported_p (TImode))
5720
- return uint128_type_node;
5821
+ /*if (targetm.scalar_mode_supported_p (TImode))
59-
+ return uint128_type_node;*/
22+
+ return uint128_type_node;*/
6023

6124
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
6225
type_);
@@ -67,10 +30,27 @@ index 4da3156af74..2593288c5ee 100644
6730
- if (targetm.scalar_mode_supported_p (TImode))
6831
- return intTI_type_node;
6932
+ /*if (targetm.scalar_mode_supported_p (TImode))
70-
+ return intTI_type_node;*/
33+
+ return intTI_type_node;*/
7134

7235
add_error (NULL, "gcc_jit_types value unsupported on this target: %i",
7336
type_);
37+
diff --git a/gcc/jit/jit-target.cc b/gcc/jit/jit-target.cc
38+
index 031b7e79591..16983301ce9 100644
39+
--- a/gcc/jit/jit-target.cc
40+
+++ b/gcc/jit/jit-target.cc
41+
@@ -39,11 +39,11 @@ along with GCC; see the file COPYING3. If not see
42+
void
43+
jit_target_dependent_types_init()
44+
{
45+
- if (targetm.scalar_mode_supported_p (TImode))
46+
+ /*if (targetm.scalar_mode_supported_p (TImode))
47+
{
48+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_UINT128_T);
49+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_INT128_T);
50+
- }
51+
+ }*/
52+
53+
if (float16_type_node != NULL && TYPE_PRECISION(float16_type_node) == 16)
54+
jit_target_add_supported_target_dependent_type(GCC_JIT_TYPE_FLOAT16);
7455
--
75-
2.51.0
76-
56+
2.43.0

0 commit comments

Comments
 (0)