[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 14 08:55:38 PDT 2023
jonpa created this revision.
jonpa added reviewers: uweigand, iii.
Herald added subscribers: bzcheeseman, hiraditya.
Herald added a project: All.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Allow bitcasting of fp/vec values into inline assembly 'r' operands, int/vec operands into 'f' operands, and int/fp operands into 'v' operands. This now matches GCCs behavior.
For the 'f' constraint, I changed the register class assigned for 128-bit to depend on the vector facility (using getRegClassFor()). This was needed to match GCCs behavior, but I am now a little surprised that this was always FP128BitRegClass..?
The casting between i128 and f128 required some extra work as i128 is untyped.
https://reviews.llvm.org/D146059
Files:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/inline-asm-fp-int-casting.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146059.505120.patch
Type: text/x-patch
Size: 10516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230314/ea02a1c7/attachment.bin>
More information about the llvm-commits
mailing list