mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-02 02:55:35 +00:00
29 lines
614 B
ArmAsm
29 lines
614 B
ArmAsm
|
# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-nacl %s \
|
||
|
# RUN: | llvm-objdump -triple mipsel -disassemble -no-show-raw-insn - \
|
||
|
# RUN: | FileCheck %s
|
||
|
|
||
|
# This test tests that address-masking sandboxing is added when given assembly
|
||
|
# input.
|
||
|
|
||
|
test1:
|
||
|
.set noreorder
|
||
|
|
||
|
jr $a0
|
||
|
nop
|
||
|
jr $ra
|
||
|
nop
|
||
|
|
||
|
# CHECK-LABEL: test1:
|
||
|
|
||
|
# CHECK: and $4, $4, $14
|
||
|
# CHECK-NEXT: jr $4
|
||
|
|
||
|
# Check that additional nop is inserted, to align mask and jr to the next
|
||
|
# bundle.
|
||
|
|
||
|
# CHECK-NEXT: nop
|
||
|
# CHECK-NEXT: nop
|
||
|
|
||
|
# CHECK: and $ra, $ra, $14
|
||
|
# CHECK-NEXT: jr $ra
|