[llvm] r211247 - R600/SI: Add intrinsics for various math instructions.

Michel Dänzer michel at daenzer.net
Wed Jun 18 23:27:58 PDT 2014


On 19.06.2014 10:19, Matt Arsenault wrote:
> Author: arsenm
> Date: Wed Jun 18 20:19:19 2014
> New Revision: 211247
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=211247&view=rev
> Log:
> R600/SI: Add intrinsics for various math instructions.
> 
> These will be used for custom lowering and for library
> implementations of various math functions, so it's useful
> to expose these as builtins.

This change breaks lots of piglit gpu.py tests:

LLVM triggered Diagnostic Handler: unsupported call to function llvm.AMDGPU.rsq in main
shader_runner: /home/daenzer/src/llvm-git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:7247: std::pair<SDValue, SDValue> llvm::TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &) const: Assertion `CLI.Chain.getNode() && CLI.Chain.getValueType() == MVT::Other && "LowerCall didn't return a valid chain!"' failed.

Would it be possible to preserve the pre-existing intrinsics unchanged?
If not, it's a minor inconvenience for Mesa, as using
llvm.AMDGPU.rsq.f32 breaks in the same way with older LLVM. Not the end
of the world though.


-- 
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer



More information about the llvm-commits mailing list