ARM64: always use i64 for the RHS of shift operations
authorTim Northover <tnorthover@apple.com>
Thu, 3 Apr 2014 09:26:16 +0000 (09:26 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 3 Apr 2014 09:26:16 +0000 (09:26 +0000)
commit27d489f3b2bcdb328bd0048216044f6285f4f5a0
tree9029be8efb43ac353b041b94eaaa8b12903bef88
parentb8c20fdb2b5cf219621ac7e1be8ce91246e83253
ARM64: always use i64 for the RHS of shift operations

Switching between i32 and i64 based on the LHS type is a good idea in
theory, but pre-legalisation uses i64 regardless of our choice,
leading to potential ISel errors.

Should fix PR19294.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64ISelLowering.cpp
lib/Target/ARM64/ARM64InstrFormats.td
lib/Target/ARM64/ARM64InstrInfo.td