Correct ARM NOP encoding
authorDavid Sehr <sehr@google.com>
Wed, 5 Dec 2012 21:01:27 +0000 (21:01 +0000)
committerDavid Sehr <sehr@google.com>
Wed, 5 Dec 2012 21:01:27 +0000 (21:01 +0000)
commit05176cad2145d7f8ff751303389883fd21295152
tree8855b3d3087c3baa713a175f01f29eccbbaf3edb
parenta5b779a87c2e1e2ec2630e1523e410e39a1320fc
Correct ARM NOP encoding

The encoding of NOP in ARMAsmBackend.cpp is missing a trailing zero, which
causes the emission of a coprocessor instruction rather than "mov r0, r0"
as indicated in the comment.  The test also checks for the wrong encoding.

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121203/157919.html

llvm-svn: 169420
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/test/MC/MachO/ARM/nop-armv4-padding.s