The code pattern "imm0_255_neg" is used for checking if an immediate value is a small...
authorNadav Rotem <nrotem@apple.com>
Wed, 14 Nov 2012 19:39:15 +0000 (19:39 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 14 Nov 2012 19:39:15 +0000 (19:39 +0000)
commit50b66387e3eda89ba0097fedc237e41eac5d6808
tree1076c6ec6cdab906d811329aa04f9714e007a2b6
parent714a587115aab2068117223ed4d2315795c8bd28
The code pattern "imm0_255_neg" is used for checking if an immediate value is a small negative number.
This patch changes the definition of negative from -0..-255 to -1..-255. I am changing this because of
a bug that we had in some of the patterns that assumed that "subs" of zero does not set the carry flag.

rdar://12028498

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167963 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/2012-11-14-subs_carry.ll [new file with mode: 0644]