[llvm-commits] [llvm] r138876 - /llvm/trunk/test/MC/ARM/thumb-nop.s

Jim Grosbach grosbach at apple.com
Wed Aug 31 11:35:47 PDT 2011


Author: grosbach
Date: Wed Aug 31 13:35:46 2011
New Revision: 138876

URL: http://llvm.org/viewvc/llvm-project?rev=138876&view=rev
Log:
Thumb NOP encoding varies depending on ARCH revision.

Added:
    llvm/trunk/test/MC/ARM/thumb-nop.s

Added: llvm/trunk/test/MC/ARM/thumb-nop.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/thumb-nop.s?rev=138876&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/thumb-nop.s (added)
+++ llvm/trunk/test/MC/ARM/thumb-nop.s Wed Aug 31 13:35:46 2011
@@ -0,0 +1,9 @@
+@ RUN: llvm-mc -triple=thumbv6-apple-darwin -show-encoding < %s | FileCheck %s -check-prefix=CHECK-V6
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding < %s | FileCheck %s -check-prefix=CHECK-V7
+
+  .syntax unified
+
+        nop
+
+@ CHECK-V6: nop                            @ encoding: [0xc0,0x46]
+@ CHECK-V7: nop                            @ encoding: [0x00,0xbf]





More information about the llvm-commits mailing list