[PATCH] pr103194-5.c: Replace long with int64_t

Hongtao Liu crazylht@gmail.com
Thu Nov 25 05:35:36 GMT 2021


On Thu, Nov 25, 2021 at 12:18 PM H.J. Lu via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Replace long with int64_t to work with -mx32.
Thanks.
>
>         * gcc.target/i386/pr103194-5.c: Replace long with int64_t.
> ---
>  gcc/testsuite/gcc.target/i386/pr103194-5.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/i386/pr103194-5.c b/gcc/testsuite/gcc.target/i386/pr103194-5.c
> index dfaddf0aa6e..2e335285c2f 100644
> --- a/gcc/testsuite/gcc.target/i386/pr103194-5.c
> +++ b/gcc/testsuite/gcc.target/i386/pr103194-5.c
> @@ -2,6 +2,7 @@
>  /* { dg-options "-O2" } */
>  #include <stdatomic.h>
>  #include <stdbool.h>
> +#include <stdint.h>
>
>  #define FOO(RTYPE,TYPE)                                                        \
>    __attribute__((noinline,noclone)) RTYPE                              \
> @@ -53,7 +54,7 @@
>      return __sync_fetch_and_and (a, ~mask) & mask;                     \
>    }                                                                    \
>
> -FOO(int, long);
> +FOO(int, int64_t);
>
>  /* { dg-final { scan-assembler-times "lock;?\[ \t\]*bts" 2 } } */
>  /* { dg-final { scan-assembler-times "lock;?\[ \t\]*btc" 4 } } */
> --
> 2.33.1
>


-- 
BR,
Hongtao


More information about the Gcc-patches mailing list