brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · f306a20 Raw
53 lines · plain
1; RUN: llvm-mc -triple m68k -show-encoding -motorola-integers %s | FileCheck %s2 3; At the moment, all encoding tests for M68k live in llvm/test/CodeGen/M68k/.4; This is the first test included as part of the AsmMatcher and lacks encoding checks.5; The current migration plan is to consolidate all of the encoding tests in this6; directory along with AsmMatcher/ Disassembler tests like the other platforms.7; For more information and status updates see bug #49865.8 9.global ext_fn10 11; CHECK: move.l %a1, %a012move.l %a1, %a013; CHECK: adda.l %a0, %a114adda.l %a0, %a115; CHECK: addx.l %d1, %d216addx.l %d1, %d217; CHECK: sub.w #4, %d118sub.w #4, %d119; CHECK: cmp.w %a0, %d020cmp.w %a0, %d021; CHECK: neg.w %d022neg.w %d023; CHECK: btst #8, %d324btst #$8, %d325; CHECK: bra ext_fn26bra ext_fn27; CHECK: jsr ext_fn28jsr ext_fn29; CHECK: seq %d030seq %d031; CHECK: sgt %d032sgt %d033; CHECK: lea (80,%a0), %a134lea $50(%a0), %a135; CHECK: lsl.l #8, %d136lsl.l #8, %d137; CHECK: lsr.l #8, %d138lsr.l #8, %d139; CHECK: asr.l #8, %d140asr.l #8, %d141; CHECK: rol.l #8, %d142rol.l #8, %d143; CHECK: ror.l #8, %d144ror.l #8, %d145; CHECK: nop46nop47; CHECK: rts48rts49; CHECK: movem.l %d0-%d6/%a0, (%sp)50movem.l %d0-%d6/%a0, (%sp)51; CHECK: movem.l (10,%sp), %d0-%d6/%a052movem.l (10,%sp), %d0-%d6/%a053