Add support for more sparc VIS 3.0 instructions.
[gcc.git] / gcc / testsuite / gcc.target / sparc / xmul.c
1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=niagara3 -mvis" } */
3 typedef long long int64_t;
4
5 int64_t test_umulxhi (int64_t x, int64_t y)
6 {
7 return __builtin_vis_umulxhi (x, y);
8 }
9
10 int64_t test_xmulx (int64_t x, int64_t y)
11 {
12 return __builtin_vis_xmulx (x, y);
13 }
14
15 int64_t test_xmulxhi (int64_t x, int64_t y)
16 {
17 return __builtin_vis_xmulxhi (x, y);
18 }
19
20 /* { dg-final { scan-assembler "umulxhi\t%" } } */
21 /* { dg-final { scan-assembler "xmulx\t%" } } */
22 /* { dg-final { scan-assembler "xmulxhi\t%" } } */