<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in LoongArchMatInt.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>407b613d - [LoongArch] Add support for selecting constant materializations.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMatInt.cpp#407b613d</link>
        <description>[LoongArch] Add support for selecting constant materializations.Integer materializing can generate LU12I_W, ORI, LU32I_D, LU52I_D andADDI_W instructions.According to the sign-extended behavior of these instructions(except ORI), the generated instruction sequence can be improved.For example, load -1 into general register:The ADDI_W instruction performs the operation that the [31:0] bit datain the general register `rj` plus the 12-bit immediate `simm12` signextension 32-bit data; the resultant [31:0] bit is sign extension, thenwritten into the general register `rd`.Normal sequence:```lu12i.w $a0, -1ori $a0, $a0, 2048```Improved with sign-extended instruction:```addi.w $a0, $zero,  -1```Reviewed By: SixWeining, MaskRayDifferential Revision: https://reviews.llvm.org/D123290

            List of files:
            /llvm-project-15.0.7/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMatInt.cpp</description>
        <pubDate>Fri, 15 Apr 2022 03:43:36 +0000</pubDate>
        <dc:creator>wanglei &lt;wanglei@loongson.cn&gt;</dc:creator>
    </item>
</channel>
</rss>
