]> granicus.if.org Git - llvm/commit
[RISCV] Lower inline asm constraints I, J & K for RISC-V
authorLewis Revill <lewis.revill@embecosm.com>
Tue, 11 Jun 2019 12:42:13 +0000 (12:42 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Tue, 11 Jun 2019 12:42:13 +0000 (12:42 +0000)
commit287b34ed8c351d75b51aaf07aff3d345340ad33a
tree2ea79a828b4c42ff5ab31a4576c78b89821e1dbb
parente8c465f070a0cd9811db7e4652f498a49a115f1d
[RISCV] Lower inline asm constraints I, J & K for RISC-V

This validates and lowers arguments to inline asm nodes which have the
constraints I, J & K, with the following semantics (equivalent to GCC):

I: Any 12-bit signed immediate.
J: Immediate integer zero only.
K: Any 5-bit unsigned immediate.

Differential Revision: https://reviews.llvm.org/D54093

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363054 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
test/CodeGen/RISCV/inline-asm.ll