Fix the bfi handling for or (and a mask) (and b mask). We need the two
authorEric Christopher <echristo@apple.com>
Sat, 26 Mar 2011 01:21:03 +0000 (01:21 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 26 Mar 2011 01:21:03 +0000 (01:21 +0000)
commit29aeed1bf8c70eec381d5cbf7de2710b5157d526
treed24dfe54fcc27a97879cd842c4a0f4f730d55f33
parente420449e80191051d6d1636883f2400cb0a8ace5
Fix the bfi handling for or (and a mask) (and b mask). We need the two
masks to match inversely for the code as is to work. For the example given
we actually want:

bfi r0, r2, #1, #1

not #0, however, given the way the pattern is written it's not possible
at the moment.

Fixes rdar://9177502

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb2/bfi.ll