This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented


------- Additional Comments From amacleod at redhat dot com  2004-10-07 20:02 -------
ok, so how is this suppose to work again?
Entering SSA->normal, I see:

  double FFF;
  double DDD;
  double fpenv;
  double sum;
 
  # BLOCK 0
  # PRED: ENTRY [100.0%]  (fallthru,exec)
  sum_3 = DDD_1 + FFF_2;
  __asm__ __volatile__("mtfsf 255,%0"::"f" fpenv_4);
  return sum_3;
  # SUCC: EXIT [100.0%]


is the volatile in ASM suppose to block all movement across it or something?
There is nothing in the asm instruction indicating it has anything to do with
sum_3....



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]