gcc/testsuite/gcc.target/s390/arch12/aghsghmgh-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | long long |
| 4 | agh (long long a, short int *p) |
| 5 | { |
| 6 | return a + *p; |
| 7 | } |
| 8 | |
| 9 | long long |
| 10 | sgh (long long a, short int *p) |
| 11 | { |
| 12 | return a - *p; |
| 13 | } |
| 14 | |
| 15 | long long |
| 16 | mgh (long long a, short int *p) |
| 17 | { |
| 18 | return a * *p; |
| 19 | } |
| 20 | |
| 21 | /* { dg-final { scan-assembler-times "\tagh\t" 1 } } */ |
| 22 | /* { dg-final { scan-assembler-times "\tsgh\t" 1 } } */ |
| 23 | /* { dg-final { scan-assembler-times "\tmgh\t" 1 } } */ |