Skip to content

Commit

Permalink
Fix testism where __seg_gs was being used for all targets
Browse files Browse the repository at this point in the history
Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick
(if any) the right __seg_{gs,fs} keyword based on target.

gcc/testsuite/ChangeLog:

	* gcc.dg/bitint-86.c (__seg_gs): Replace with SEG MACRO.
  • Loading branch information
avieira-arm committed Feb 19, 2024
1 parent c715128 commit b29f20b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcc/testsuite/gcc.dg/bitint-86.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ struct T { struct S b[4]; };
#endif

void
foo (__seg_gs struct T *p)
foo (SEG struct T *p)
{
struct S s;
p->b[0] = s;
}

void
bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z)
bar (SEG struct T *p, _BitInt(710) x, int y, double z)
{
p->b[0].a = x + 42;
p->b[1].a = x << y;
Expand All @@ -31,7 +31,7 @@ bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z)
}

int
baz (__seg_gs struct T *p, _BitInt(710) x, _BitInt(710) y)
baz (SEG struct T *p, _BitInt(710) x, _BitInt(710) y)
{
return __builtin_add_overflow (x, y, &p->b[1].a);
}
Expand Down

0 comments on commit b29f20b

Please sign in to comment.