mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
47a0d52b69
Thumb one requires that many arithmetic instruction forms have an 'S' suffix. For Thumb2, the whether the suffix is required or precluded depends on whether the instruction is in an IT block. Use target parser predicates to check for these sorts of context-sensitive constraints. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137746 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
314 B
ArmAsm
13 lines
314 B
ArmAsm
@ RUN: llvm-mc -triple armv7-apple-darwin %s -filetype=obj -o %t.obj
|
|
@ RUN: macho-dump --dump-section-data < %t.obj > %t.dump
|
|
@ RUN: FileCheck %s < %t.dump
|
|
|
|
.thumb_func x
|
|
.code 16
|
|
x:
|
|
adds r0, r1, r2
|
|
.align 4
|
|
adds r0, r1, r2
|
|
|
|
@ CHECK: ('_section_data', '881800bf 00bf00bf 00bf00bf 00bf00bf 8818')
|