[FastISel][AArch64] Also allow folding of sign-/zero-extend and shift-left for boolea...
authorJuergen Ributzka <juergen@apple.com>
Mon, 22 Sep 2014 21:08:53 +0000 (21:08 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 22 Sep 2014 21:08:53 +0000 (21:08 +0000)
commitaf989653e0e6b965758d3c0ea565343939708fb8
tree2d9fddb466edad4c6007a15ab138ffcfba0af361
parente6f6980d5ba338fb40eb2d294fee878ddf44fd01
[FastISel][AArch64] Also allow folding of sign-/zero-extend and shift-left for booleans (i1).

Shift-left immediate with sign-/zero-extensions also works for boolean values.
Update the assert and the test cases to reflect that fact.

This should fix a bug found by Chad.

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