summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/tbm-2.c
blob: 447e0ab66c6c7a99d46c10a78022063a9214f1c9 (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
75
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -mtbm" } */
/* { dg-final { scan-assembler "bextr\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blcfill\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blci\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blcic\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blcmsk\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blcs\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blsfill\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "blsic\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "t1mskc\[^\\n]*(%|)rax" } } */
/* { dg-final { scan-assembler "tzmsk\[^\\n]*(%|)rax" } } */

#include <x86intrin.h>

unsigned long long
func_bextri64 (unsigned long long X)
{
  return __bextri_u64 (X, 0x101);
}

unsigned long long
func_blcfill64 (unsigned long long X)
{
  return __blcfill_u64 (X);
}

unsigned long long
func_blci64 (unsigned long long X)
{
  return __blci_u64 (X);
}

unsigned long long
func_blcic64 (unsigned long long X)
{
  return __blcic_u64 (X);
}

unsigned long long
func_blcmsk64 (unsigned long long X)
{
  return __blcmsk_u64 (X);
}

unsigned long long
func_blcs64 (unsigned long long X)
{
  return __blcs_u64 (X);
}

unsigned long long
func_blsfill64 (unsigned long long X)
{
  return __blsfill_u64 (X);
}

unsigned long long
func_blsic64 (unsigned long long X)
{
  return __blsic_u64 (X);
}

unsigned long long
func_t1mskc64 (unsigned long long X)
{
  return __t1mskc_u64 (X);
}

unsigned long long
func_tzmsk64 (unsigned long long X)
{
  return __tzmsk_u64 (X);
}