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)
commit2c46beb0d109d75ed597acb0d726035daacd2c33
treeb1e9408146e10756c5e4adfcc74598db083f2690
parent9303357e73d034b9f22b459f92028583231e8746
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.

llvm-svn: 214052
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/arm64-inline-asm.ll