[FastIsel][AArch64] Fix a think-o in address computation.
authorJuergen Ributzka <juergen@apple.com>
Fri, 19 Sep 2014 22:23:46 +0000 (22:23 +0000)
committerJuergen Ributzka <juergen@apple.com>
Fri, 19 Sep 2014 22:23:46 +0000 (22:23 +0000)
commitfaf93a6e0cb27e97b40c59d5dfd35a993055547b
treecc55294f3d4749f10102d09999eec4e185732f12
parent1595b128e9deb43a3bb8c93fdcf56c33041e6c53
[FastIsel][AArch64] Fix a think-o in address computation.

When looking through sign/zero-extensions the code would always assume there is
such an extension instruction and use the wrong operand for the address.

There was also a minor issue in the handling of 'AND' instructions. I
accidentially used a 'cast' instead of a 'dyn_cast'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218161 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-addressing-modes.ll