Add some simple integer patterns. This allows us to compile this:
authorChris Lattner <sabre@nondot.org>
Sat, 17 Dec 2005 08:26:38 +0000 (08:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Dec 2005 08:26:38 +0000 (08:26 +0000)
commit7b0902dcf8352ef93e35cc9cf264dbe4d2a198de
treeeb7d479172c61335328f7fea539acc4c6de99357
parent4b4863188fe226c00d961ec611f2eb1ee8aac4c0
Add some simple integer patterns.  This allows us to compile this:

int %test(int %A) {
  %B = add int %A, 1
  %C = xor int %B, 123
  ret int %C
}

into this:

test:
        save -96, %sp, %sp
        add %i0, 1, %l0
        xor %l0, 123, %i0
        restore %g0, %g0, %g0
        retl
        nop

for example.  I guess it would make sense to add reg/reg versions too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/SparcInstrInfo.td
lib/Target/SparcV8/SparcV8InstrInfo.td