1218885Sdim/* Copyright (C) 2001-2015 Free Software Foundation, Inc. 2218885Sdim Contributed by David Mosberger <davidm@hpl.hp.com>. 3218885Sdim 4218885Sdim This file is part of GCC. 5218885Sdim 6218885Sdim GCC is free software; you can redistribute it and/or modify 7218885Sdim it under the terms of the GNU General Public License as published by 8218885Sdim the Free Software Foundation; either version 3, or (at your option) 9218885Sdim any later version. 10218885Sdim 11218885Sdim GCC is distributed in the hope that it will be useful, 12218885Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 13218885Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14218885Sdim GNU General Public License for more details. 15218885Sdim 16218885Sdim Under Section 7 of GPL version 3, you are granted additional 17218885Sdim permissions described in the GCC Runtime Library Exception, version 18218885Sdim 3.1, as published by the Free Software Foundation. 19218885Sdim 20218885Sdim You should have received a copy of the GNU General Public License and 21218885Sdim a copy of the GCC Runtime Library Exception along with this program; 22218885Sdim see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23218885Sdim <http://www.gnu.org/licenses/>. */ 24218885Sdim 25218885Sdim/* We could call fesetenv() here but that would create a confusing 26218885Sdim dependency on libm (since that is where fesetenv() gets defined. 27218885Sdim To avoid this, just do everything locally. */ 28218885Sdim#define FE_NONIEEE_ENV 0x0009a04d0270037f 29218885Sdim 30218885Sdimstatic void __attribute__((constructor)) 31218885Sdim__ia64_set_fast_math (void) 32218885Sdim{ 33218885Sdim __asm__ __volatile__ ("mov.m ar.fpsr=%0" : : "r"(FE_NONIEEE_ENV)); 34218885Sdim} 35218885Sdim