diff options
author | Dan Albert <danalbert@google.com> | 2016-02-04 18:51:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-02-04 18:51:25 +0000 |
commit | edbbe53c4ffa154a5f9ae3f89ba8105993d8800e (patch) | |
tree | 4cedb380a14027d9c4d1e531c2340c43cbd79175 /gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c | |
parent | a4ca82cac69c3147143d7b4b4d7cdeb5e02f20ef (diff) | |
parent | 3186be22b6598fbd467b126347d1c7f48ccb7f71 (diff) | |
download | toolchain_gcc-edbbe53c4ffa154a5f9ae3f89ba8105993d8800e.tar.gz toolchain_gcc-edbbe53c4ffa154a5f9ae3f89ba8105993d8800e.tar.bz2 toolchain_gcc-edbbe53c4ffa154a5f9ae3f89ba8105993d8800e.zip |
Merge "Check in a pristine copy of GCC 4.8.1."
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c b/gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c new file mode 100644 index 000000000..60b5c528f --- /dev/null +++ b/gcc-4.8.1/gcc/testsuite/gcc.target/ia64/20040303-1.c @@ -0,0 +1,20 @@ +/* Test floating point division on ia64. There was a bug in the + max-throughput version of the inline division code. Expecting an + exact value from a floating point expression is unwise but GCC + depends on it in allocno_compare. */ + +/* { dg-do run } */ +/* { dg-options "-minline-float-divide-max-throughput" } */ + +extern void abort (void); + +volatile int i = 24; +volatile int j = 30; +volatile int k = 1; + +int main() +{ + int pri2 = (((double) i / j) * (10000 / 1000) * k); + if (pri2 != 8) abort(); + return 0; +} |