summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/tbm-1.c
blob: 2c16d74db49969a2f283cba2a2b3b3e3ced71b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* { dg-do compile } */
/* { dg-options "-O2 -mtbm" } */
/* { dg-final { scan-assembler "bextr\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blcfill\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blci\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blcic\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blcmsk\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blcs\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blsfill\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "blsic\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "t1mskc\[^\\n]*(%|)eax" } } */
/* { dg-final { scan-assembler "tzmsk\[^\\n]*(%|)eax" } } */

#include <x86intrin.h>

unsigned int
func_bextri32 (unsigned int X)
{
  return __bextri_u32 (X, 0x101);
}

unsigned int
func_blcfill32 (unsigned int X)
{
  return __blcfill_u32 (X);
}

unsigned int
func_blci32 (unsigned int X)
{
  return __blci_u32 (X);
}

unsigned int
func_blcic32 (unsigned int X)
{
  return __blcic_u32 (X);
}

unsigned int
func_blcmsk32 (unsigned int X)
{
  return __blcmsk_u32 (X);
}

unsigned int
func_blcs32 (unsigned int X)
{
  return __blcs_u32 (X);
}

unsigned int
func_blsfill32 (unsigned int X)
{
  return __blsfill_u32 (X);
}

unsigned int
func_blsic32 (unsigned int X)
{
  return __blsic_u32 (X);
}

unsigned int
func_t1mskc32 (unsigned int X)
{
  return __t1mskc_u32 (X);
}

unsigned int
func_tzmsk32 (unsigned int X)
{
  return __tzmsk_u32 (X);
}