| 1 |
/* PR target/97873 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O2 -msse2 -mno-sse3 -mtune=generic" } */ |
| 4 |
|
| 5 |
short test_absw (short x) |
| 6 |
{ |
| 7 |
return (x < 0) ? -x : x; |
| 8 |
} |
| 9 |
|
| 10 |
short test_sminw (short x, short y) |
| 11 |
{ |
| 12 |
return (x < y) ? x : y; |
| 13 |
} |
| 14 |
|
| 15 |
/* { dg-final { scan-assembler-not "movswl" } } */ |
| 16 |
|
| 17 |
char test_absb (char x) |
| 18 |
{ |
| 19 |
return (x < 0) ? -x : x; |
| 20 |
} |
| 21 |
|
| 22 |
char test_sminb (char x, char y) |
| 23 |
{ |
| 24 |
return (x < y) ? x : y; |
| 25 |
} |
| 26 |
|
| 27 |
/* { dg-final { scan-assembler-not "movsbl" } } */ |