i386: Refactor get_intel_cpu
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / xmul.c
bloba432ee1fec1d2e0e8abd9eb07ed782606d4302a8
1 /* { dg-do compile } */
2 /* { dg-options "-mvis3" } */
3 typedef long long int64_t;
5 int64_t test_umulxhi (int64_t x, int64_t y)
7 return __builtin_vis_umulxhi (x, y);
10 int64_t test_xmulx (int64_t x, int64_t y)
12 return __builtin_vis_xmulx (x, y);
15 int64_t test_xmulxhi (int64_t x, int64_t y)
17 return __builtin_vis_xmulxhi (x, y);
20 /* { dg-final { scan-assembler "umulxhi\t%" } } */
21 /* { dg-final { scan-assembler "xmulx\t%" } } */
22 /* { dg-final { scan-assembler "xmulxhi\t%" } } */