[PATCH] D146059: [SystemZ] Allow fp/int casting into inline assembly operands

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 10:46:15 PDT 2023


jonpa updated this revision to Diff 507047.
jonpa added a comment.

Updated patch per review.

Added more tests, but left this one out for zEC12 as it failed (not sure exactly why):

define <4 x i32> @vec128_and_r(<4 x i32> %cc_dep1) {
entry:

  %0 = tail call <4 x i32> asm sideeffect "", "=r,0"(<4 x i32> %cc_dep1)
  ret <4 x i32> %0

}

llc: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:733: void getCopyToPartsVector(llvm::SelectionDAG&, const llvm::SDLoc&, llvm::SDValue, llvm::SDValue*, unsigned int, llvm::MVT, const llvm::Value*, std:\
:optional<unsigned int>): Assertion `RegisterVT == PartVT && "Part type doesn't match vector breakdown!"' failed.

Is this expected to fail?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146059/new/

https://reviews.llvm.org/D146059

Files:
  llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
  llvm/test/CodeGen/SystemZ/inline-asm-f-constraint-softfloat.ll
  llvm/test/CodeGen/SystemZ/inline-asm-fp-int-casting-zEC12.ll
  llvm/test/CodeGen/SystemZ/inline-asm-fp-int-casting.ll
  llvm/test/CodeGen/SystemZ/inline-asm-v-constraint-novecfacility.ll
  llvm/test/CodeGen/SystemZ/soft-float-inline-asm-01.ll
  llvm/test/CodeGen/SystemZ/soft-float-inline-asm-03.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146059.507047.patch
Type: text/x-patch
Size: 21102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/011fefee/attachment.bin>


More information about the llvm-commits mailing list