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)
commit9f567c62f21050fda95e3d9853500f90d41e2068
tree37cff7859f4b5ae8f22bf1eb3e3eed10f8b01e38
parent68540087370ee6bcac0fb17d22390437f649dd71
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

llvm-svn: 167963
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/test/CodeGen/ARM/2012-11-14-subs_carry.ll [new file with mode: 0644]