OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [bmi-2.c] - Blame information for rev 762

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target { ! { ia32 }  } } } */
2
/* { dg-options "-O2 -mbmi " } */
3
/* { dg-final { scan-assembler "andn\[^\\n]*(%|)rax" } } */
4
/* { dg-final { scan-assembler "bextr\[^\\n]*(%|)rax" } } */
5
/* { dg-final { scan-assembler "blsi\[^\\n]*(%|)rax" } } */
6
/* { dg-final { scan-assembler "blsmsk\[^\\n]*(%|)rax" } } */
7
/* { dg-final { scan-assembler "blsr\[^\\n]*(%|)rax" } } */
8
/* { dg-final { scan-assembler "tzcntq\[^\\n]*(%|)rax" } } */
9
 
10
#include <x86intrin.h>
11
 
12
unsigned long long
13
func_andn64 (unsigned long long X, unsigned long long Y)
14
{
15
  return __andn_u64 (X, Y);
16
}
17
 
18
unsigned long long
19
func_bextr64 (unsigned long long X, unsigned long long Y)
20
{
21
  return __bextr_u64 (X, Y);
22
}
23
 
24
unsigned long long
25
func_blsi64 (unsigned long long X)
26
{
27
  return __blsi_u64 (X);
28
}
29
 
30
unsigned long long
31
func_blsmsk64 (unsigned long long X)
32
{
33
  return __blsmsk_u64 (X);
34
}
35
 
36
unsigned long long
37
func_blsr64 (unsigned long long X)
38
{
39
  return __blsr_u64 (X);
40
}
41
 
42
unsigned long long
43
func_tzcnt64 (unsigned long long X)
44
{
45
  return __tzcnt_u64 (X);
46
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.