Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / MC / MachO / relax-jumps.s
blob65a51e92b37c44931db6b4e8b135b72c26b14abc
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
3 // FIXME: This is a horrible way of checking the output, we need an llvm-mc
4 // based 'otool'. Use:
5 // (f=relax-jumps;
6 // llvm-mc -filetype=obj -o $f.mc.o $f.s &&
7 // as -arch i386 -o $f.as.o $f.s &&
8 // otool -tvr $f.mc.o | tail +2 > $f.mc.dump &&
9 // otool -tvr $f.as.o | tail +2 > $f.as.dump &&
10 // diff $f.{as,mc}.dump)
11 // to examine the results in a more sensible fashion.
13 // CHECK: ('_section_data', '90
14 // CHECK: 0f8432ff ffff0f82 e6000000 0f8726ff ffff0f8f da000000 0f881aff ffff0f83 ce000000 0f890eff ffff90
15 // CHECK: 9031c0')
17 L1:
18 .space 200, 0x90
20 je L1
21 jb L2
22 ja L1
23 jg L2
24 js L1
25 jae L2
26 jns L1
28 .space 200, 0x90
29 L2:
31 xorl %eax, %eax