xref: /aosp_15_r20/external/llvm/test/MC/X86/AlignedBundling/rodata-section.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple=i686-nacl -filetype=obj %s -o - \
2*9880d681SAndroid Build Coastguard Worker# RUN:    | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple=i686-nacl -filetype=obj -mc-relax-all %s -o - \
4*9880d681SAndroid Build Coastguard Worker# RUN:    | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker  .bundle_align_mode 5
7*9880d681SAndroid Build Coastguard Worker  .text
8*9880d681SAndroid Build Coastguard Worker  .align	32, 0x90
9*9880d681SAndroid Build Coastguard Worker# CHECK: 0: movl $14, 8(%esp)
10*9880d681SAndroid Build Coastguard Worker  movl	$.str2, 8(%esp)
11*9880d681SAndroid Build Coastguard Worker# CHECK: 8: movl $7, 4(%esp)
12*9880d681SAndroid Build Coastguard Worker  movl	$.str1, 4(%esp)
13*9880d681SAndroid Build Coastguard Worker# CHECK: 10: movl $0, (%esp)
14*9880d681SAndroid Build Coastguard Worker  movl	$.str, (%esp)
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker  .type	.str,@object
17*9880d681SAndroid Build Coastguard Worker  .section	.rodata,"a",@progbits
18*9880d681SAndroid Build Coastguard Worker.str:
19*9880d681SAndroid Build Coastguard Worker  .asciz	"hello1"
20*9880d681SAndroid Build Coastguard Worker  .size	.str, 7
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Worker  .type	.str1,@object
23*9880d681SAndroid Build Coastguard Worker.str1:
24*9880d681SAndroid Build Coastguard Worker  .asciz	"hello2"
25*9880d681SAndroid Build Coastguard Worker  .size	.str1, 7
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker  .type	.str2,@object
28*9880d681SAndroid Build Coastguard Worker.str2:
29*9880d681SAndroid Build Coastguard Worker  .asciz	"hello3"
30*9880d681SAndroid Build Coastguard Worker  .size	.str2, 7
31