brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 0a178d8 Raw
42 lines · plain
1@ RUN: not llvm-mc -triple thumbv7-apple-ios -filetype=obj %s -o /dev/null 2>&1 | FileCheck %s2        @ Size: 2 bytes3        .thumb_func _f14        .thumb5        .globl _f16_f1:7        bx lr8 9        @ A misaligned ARM destination.10        .arm11        .byte 0x012        .globl _misaligned13_misaligned:14        bx lr15 16        @ And a properly aligned one.17        .globl _aligned18        .p2align 219        .arm20_aligned:21        bx lr22 23        @ Align this Thumb function so we can predict the outcome of24        @ "Align(PC, 4)" during blx operation.25        .thumb_func _test26        .thumb27        .p2align 228        .globl _test29_test:30        blx _misaligned       @ PC=0 (mod 4)31        movs r0, r032        blx _misaligned       @ PC=2 (mod 4)33        movs r0, r034        blx _aligned          @ PC=0 (mod 4)35        movs r0, r036        blx _aligned          @ PC=2 (mod 4)37 38@ CHECK: error: misaligned ARM call destination39@ CHECK:   blx _misaligned40@ CHECK: error: misaligned ARM call destination41@ CHECK:   blx _misaligned42