From: Eric Christopher Date: Tue, 15 Jun 2004 23:09:24 +0000 (+0000) Subject: asm5.c: New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bf3d92c78fc0736054b7dc42b5414b3caec08fe;p=gcc.git asm5.c: New. 2004-06-15 Eric Christopher * g++.dg/charset/asm5.c: New. * gcc.dg/charset/asm6.c: New. From-SVN: r83215 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2d74fb60751..d5eaccf49a6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-06-15 Eric Christopher + + * g++.dg/charset/asm5.c: New. + * gcc.dg/charset/asm6.c: New. + 2004-06-15 Tobias Schlueter PR fortran/15962 @@ -39,7 +44,7 @@ PR fortran/14928 * gfortran.fortran-torture/compile/mloc.f90: New test. - + 2004-06-13 Paul Brook * gfortran.fortran-torture/execute/random_2.f90: New test. diff --git a/gcc/testsuite/g++.dg/charset/asm5.c b/gcc/testsuite/g++.dg/charset/asm5.c new file mode 100644 index 00000000000..91316224f0c --- /dev/null +++ b/gcc/testsuite/g++.dg/charset/asm5.c @@ -0,0 +1,13 @@ +/* Test for string translation. */ +/* { dg-do compile } + { dg-require-iconv "IBM-1047" } + { dg-final { scan-assembler "foo" } } */ +int main() +{ + unsigned long int *ptr; + ptr = ((unsigned long int *) + ( { void *stack_ptr; + __asm__ __volatile__ ( "foo %0" : "=r" (stack_ptr) ); + (stack_ptr); } ) ); + return 0; +} diff --git a/gcc/testsuite/gcc.dg/charset/asm6.c b/gcc/testsuite/gcc.dg/charset/asm6.c new file mode 100644 index 00000000000..91316224f0c --- /dev/null +++ b/gcc/testsuite/gcc.dg/charset/asm6.c @@ -0,0 +1,13 @@ +/* Test for string translation. */ +/* { dg-do compile } + { dg-require-iconv "IBM-1047" } + { dg-final { scan-assembler "foo" } } */ +int main() +{ + unsigned long int *ptr; + ptr = ((unsigned long int *) + ( { void *stack_ptr; + __asm__ __volatile__ ( "foo %0" : "=r" (stack_ptr) ); + (stack_ptr); } ) ); + return 0; +}