[PATCH] D78494: [AMDGPU][CODEGEN] Added 'A' constraint for inline assembler
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 08:03:42 PDT 2020
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
I guess the fundamental problem for the 16-bit immediate case is you can't know the use instruction's context. You're really accepting something that's not an inline immediate in the use context, but you have no way of knowing that.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:10899
+ } else if (ConstantFPSDNode *C = dyn_cast<ConstantFPSDNode>(Op)) {
+ Val = C->getValueAPF().bitcastToAPInt().getSExtValue();
+ IsConst = true;
----------------
This should be getZExtValue? It looks like the tests worked correctly here, but not sure why it didn't matter
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78494/new/
https://reviews.llvm.org/D78494
More information about the llvm-commits
mailing list