brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 1d5d4f0 Raw
50 lines · plain
1; RUN: llvm-mc -triple=m68k --mcpu=M68020 -motorola-integers -filetype=obj --position-independent < %s \2; RUN:     | llvm-objdump -d - | FileCheck %s3; RUN: llvm-mc -triple m68k --mcpu=M68020 -show-encoding --position-independent %s -o - \4; RUN:   | FileCheck -check-prefix=INSTR %s5 6; Branch relocations are relaxed as part of object layout, so -show-encoding still 7; shows them as 1-byte relocactions 8 9; CHECK-LABEL: <TIGHT>:10TIGHT:11	; CHECK: bra  $7f12	; INSTR: bra .LBB0_2 ; encoding: [0x60,A]13	bra	.LBB0_214	.space 0x7F  ; i8::MAX15.LBB0_2:16	add.l	#0, %d017	rts18 19; CHECK-LABEL: <RELAXED>:20RELAXED:21	; CHECK: bra  $8222	; INSTR: bra .LBB1_2 ; encoding: [0x60,A]23	bra	.LBB1_224	.space 0x80  ; Greater than i8::MAX25.LBB1_2:26	add.l	#0, %d027	rts28 29; CHECK-LABEL: <RELAXED_32>:30RELAXED_32:31	; CHECK: bra  $ff32	; CHECK-NEXT: 00 0033	; CHECK-NEXT: 80 0434	; INSTR: bra .LBB2_1 ; encoding: [0x60,A]35	bra	.LBB2_136	.space 0x8000  ; Greater than i16::MAX.37.LBB2_1:38	add.l	#0, %d039	rts40 41; CHECK-LABEL: <ZERO>:42ZERO:43	; CHECK: bra  $244	; INSTR: bra .LBB3_1 ; encoding: [0x60,A]45	bra	.LBB3_146.LBB3_1:47	add.l	#0, %d048	rts49 50