
17 Jun
2016
17 Jun
'16
8 a.m.
Harendra Kumar
Hi Ömer,
I just checked and I do not see this behavior in 8.0.1 native code, it is only seen in 7.10.3. So I guess this got fixed in 8.0.
How about the llvm generated code? Can we control this behavior for llvm generated code as well? I first noticed this in llvm generated code with ghc-7.10.3. I do not yet have llvm-3.7 installed to verify the same on 8.0.1.
Indeed that may be the difference. It looks like the LLVM code generator currently ignores the expected value provided by the C-- representation. This is pretty straightforward to fix; see D2339 [1]. Cheers, - Ben [1] https://phabricator.haskell.org/D2339