diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/pr35232.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/pr35232.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/pr35232.c b/gcc/testsuite/gcc.target/mips/pr35232.c new file mode 100644 index 00000000000..c0e0649b52e --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/pr35232.c @@ -0,0 +1,17 @@ +/* { dg-do run } */ +/* { dg-mips-options "-O" } */ + +NOMIPS16 unsigned int +f1 (unsigned long long x) +{ + unsigned int r; + asm ("# %0" : "=a" (r) : "0" (x)); + asm ("# %0" : "=h" (r) : "0" (r)); + return r; +} + +int +main (void) +{ + return f1 (4) != 4; +} |