mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +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 armv6-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', '8818c046 c046c046 c046c046 c046c046 8818')
|