1; RUN: llvm-mc -triple m68k -show-encoding -motorola-integers %s | FileCheck %s 2 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 this 6; directory along with AsmMatcher/ Disassembler tests like the other platforms. 7; For more information and status updates see bug #49865. 8 9.global ext_fn 10 11; CHECK: move.l %a1, %a0 12move.l %a1, %a0 13; CHECK: adda.l %a0, %a1 14adda.l %a0, %a1 15; CHECK: addx.l %d1, %d2 16addx.l %d1, %d2 17; CHECK: sub.w #4, %d1 18sub.w #4, %d1 19; CHECK: cmp.w %a0, %d0 20cmp.w %a0, %d0 21; CHECK: neg.w %d0 22neg.w %d0 23; CHECK: btst #8, %d3 24btst #$8, %d3 25; CHECK: bra ext_fn 26bra ext_fn 27; CHECK: jsr ext_fn 28jsr ext_fn 29; CHECK: seq %d0 30seq %d0 31; CHECK: sgt %d0 32sgt %d0 33; CHECK: lea (80,%a0), %a1 34lea $50(%a0), %a1 35; CHECK: lsl.l #8, %d1 36lsl.l #8, %d1 37; CHECK: lsr.l #8, %d1 38lsr.l #8, %d1 39; CHECK: asr.l #8, %d1 40asr.l #8, %d1 41; CHECK: rol.l #8, %d1 42rol.l #8, %d1 43; CHECK: ror.l #8, %d1 44ror.l #8, %d1 45; CHECK: nop 46nop 47; CHECK: rts 48rts 49; CHECK: movem.l %d0-%d6/%a0, (%sp) 50movem.l %d0-%d6/%a0, (%sp) 51; CHECK: movem.l (10,%sp), %d0-%d6/%a0 52movem.l (10,%sp), %d0-%d6/%a0 53