OSDN Git Service

AArch64: fix conversion of 'J' inline asm constraints.
authorTim Northover <tnorthover@apple.com>
Sun, 27 Jul 2014 07:10:29 +0000 (07:10 +0000)
committerTim Northover <tnorthover@apple.com>
Sun, 27 Jul 2014 07:10:29 +0000 (07:10 +0000)
commit54a7f7f9e0b81327c5de1985d4eefbe7b32142af
tree3da8ac2e1296efa2e31a419254dedf9e53af3472
parent33153513fb353feb8e66249d52e1b407be45f491
AArch64: fix conversion of 'J' inline asm constraints.

'J' represents a negative number suitable for an add/sub alias
instruction, but while preparing it to become an int64_t we were
mangling the sign extension. So "i32 -1" became 0xffffffffLL, for
example.

Should fix one half of PR20456.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214052 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-inline-asm.ll