gcc/testsuite/gcc.target/powerpc/unpack-vectorize-run-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target vmx_hw } */ |
| 3 | /* { dg-options "-maltivec -O2 -ftree-vectorize -fno-vect-cost-model" } */ |
| 4 | |
| 5 | #include "unpack-vectorize-1.h" |
| 6 | |
| 7 | /* Test if unpack vectorization cases on signed/unsigned short and char |
| 8 | run successfully. */ |
| 9 | |
| 10 | CHECK1 (sh, si) |
| 11 | CHECK1 (uh, ui) |
| 12 | CHECK1 (sc, sh) |
| 13 | CHECK1 (uc, uh) |
| 14 | |
| 15 | int |
| 16 | main () |
| 17 | { |
| 18 | check1_sh_si (); |
| 19 | check1_uh_ui (); |
| 20 | check1_sc_sh (); |
| 21 | check1_uc_uh (); |
| 22 | |
| 23 | return 0; |
| 24 | } |