diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c b/gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c new file mode 100644 index 00000000000..fc844c3e404 --- /dev/null +++ b/gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c @@ -0,0 +1,23 @@ +/* { dg-compile } */ + +long long +agh (long long a, short int *p) +{ + return a + *p; +} + +long long +sgh (long long a, short int *p) +{ + return a - *p; +} + +long long +mgh (long long a, short int *p) +{ + return a * *p; +} + +/* { dg-final { scan-assembler-times "\tagh\t" 1 } } */ +/* { dg-final { scan-assembler-times "\tsgh\t" 1 } } */ +/* { dg-final { scan-assembler-times "\tmgh\t" 1 } } */ |