Guest User

Alive FP

a guest
Aug 19th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 1.38 KB | None | 0 0
  1. xbolva00@xbolva00:~/LLVMPokusy/alive-nj$ ./run.py
  2. [Reading from terminal...]
  3. %A = fcmp oeq float %x, -0.0
  4. %B = fadd float %x, %z
  5. %C = select i1 %A, float %B, float %y
  6. =>
  7. %C = select i1 %A, float %z, float %y
  8. ----------                                                                      
  9.   %A = fcmp oeq float %x, -0.0
  10.   %B = fadd float %x, %z
  11.   %C = select %A, float %B, float %y
  12. =>
  13.   %C = select %A, float %z, float %y
  14.  
  15. ERROR: Mismatch in values for float %C                                          
  16.  
  17. Example:
  18. float %x = +0.0
  19.    i1 %A = 0x1 (1, -1)
  20. float %z = -0.0
  21. float %B = +0.0
  22. float %y = +0.0
  23. source: +0.0
  24. target: -0.0
  25.  
  26.  
  27. -----------------------------------------------
  28. xbolva00@xbolva00:~/LLVMPokusy/alive-nj$ ./run.py
  29. [Reading from terminal...]
  30. %A = fcmp ueq float %x, -0.0
  31. %B = fadd float %x, %z
  32. %C = select i1 %A, float %B, float %y
  33. =>
  34. %C = select i1 %A, float %z, float %y
  35. ----------                                                                      
  36.   %A = fcmp ueq float %x, -0.0
  37.   %B = fadd float %x, %z
  38.   %C = select %A, float %B, float %y
  39. =>
  40.   %C = select %A, float %z, float %y
  41.  
  42. ERROR: Mismatch in values for float %C                                          
  43.  
  44. Example:
  45. float %x = NaN
  46.    i1 %A = 0x1 (1, -1)
  47. float %z = 1.00000011920928955078125*(2**64)
  48. float %B = NaN
  49. float %y = +0.0
  50. source: NaN
  51. target: 1.00000011920928955078125*(2**64)
Add Comment
Please, Sign In to add comment