21 lines · plain
1; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s2 3 ; A fixup whose size is multiple of a word.4 ; CHECK: cmpi.l #87, (.LBB0_1,%pc)5 ; CHECK-SAME: encoding: [0x0c,0xba,0x00,0x00,0x00,0x57,A,A]6 cmpi.l #87, (.LBB0_1,%pc)7 8 ; A fixup that is smaller than a word.9 ; For cases where the fixup is located in the first word, they are10 ; tested by `Control/branch-pc-rel.s`.11 ; CHECK: cmpi.l #94, (.LBB0_2,%pc,%a0)12 ; CHECK-SAME: encoding: [0x0c,0xbb,0x00,0x00,0x00,0x5e,0x88,A]13 cmpi.l #94, (.LBB0_2,%pc,%a0)14.LBB0_1:15 add.l #0, %d016 rts17.LBB0_2:18 add.l #1, %d019 rts20 21