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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [dfp-td.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* Test generation of DFP instructions for POWER6.  */
2
/* Origin: Janis Johnson <janis187@us.ibm.com> */
3
/* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
4
/* { dg-options "-std=gnu99 -mcpu=power6" } */
5
 
6
/* { dg-final { scan-assembler "daddq" } } */
7
/* { dg-final { scan-assembler "ddivq" } } */
8
/* { dg-final { scan-assembler "dmulq" } } */
9
/* { dg-final { scan-assembler "dsubq" } } */
10
/* { dg-final { scan-assembler-times "dcmpuq" 6 } } */
11
/* { dg-final { scan-assembler-times "dctfixq" 2 } } */
12
/* { dg-final { scan-assembler-times "drintnq" 2 } } */
13
/* { dg-final { scan-assembler-times "dcffixq" 2 } } */
14
 
15
extern _Decimal128 a, b, c;
16
extern int result;
17
extern int si;
18
extern long long di;
19
 
20
void add (void) { a = b + c; }
21
void div (void) { a = b / c; }
22
void mul (void) { a = b * c; }
23
void sub (void) { a = b - c; }
24
void eq (void) { result = a == b; }
25
void ne (void) { result = a != b; }
26
void lt (void) { result = a < b; }
27
void le (void) { result = a <= b; }
28
void gt (void) { result = a > b; }
29
void ge (void) { result = a >= b; }
30
void tdsi (void) { si = a; }
31
void tddi (void) { di = a; }
32
void sitd (void) { a = si; }
33
void ditd (void) { a = di; }

powered by: WebSVN 2.1.0

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