diff options
Diffstat (limited to 'llvm/test/MC/X86/align-branch-64-1a.s')
-rw-r--r-- | llvm/test/MC/X86/align-branch-64-1a.s | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/llvm/test/MC/X86/align-branch-64-1a.s b/llvm/test/MC/X86/align-branch-64-1a.s index c2187f9e73a..75381568d22 100644 --- a/llvm/test/MC/X86/align-branch-64-1a.s +++ b/llvm/test/MC/X86/align-branch-64-1a.s @@ -1,10 +1,10 @@ # Check only fused conditional jumps, conditional jumps and unconditional jumps are aligned with option --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc+jmp -# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc+jmp %s | llvm-objdump -d - > %t1 +# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc+jmp %p/Inputs/align-branch-64-1.s | llvm-objdump -d - > %t1 # RUN: FileCheck --input-file=%t1 %s # Check no branches is aligned with option --x86-align-branch-boundary=0 -# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown --x86-align-branch-boundary=0 --x86-align-branch=fused+jcc+jmp %s | llvm-objdump -d - > %t2 -# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s | llvm-objdump -d - > %t3 +# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown --x86-align-branch-boundary=0 --x86-align-branch=fused+jcc+jmp %p/Inputs/align-branch-64-1.s | llvm-objdump -d - > %t2 +# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %p/Inputs/align-branch-64-1.s | llvm-objdump -d - > %t3 # RUN: cmp %t2 %t3 # CHECK: 0000000000000000 foo: @@ -38,46 +38,3 @@ # CHECK-COUNT-10: : 89 b5 50 fb ff ff movl %esi, -1200(%rbp) # CHECK: c4: eb c2 jmp {{.*}} # CHECK-NEXT: c6: c3 retq - - .text - .globl foo - .p2align 4 -foo: - .rept 3 - movl %eax, %fs:0x1 - .endr - cmp %rax, %rbp - xorl %eax, %eax - cmp %rax, %rbp - je .L_2 - .rept 3 - movl %eax, %fs:0x1 - .endr - xorl %eax, %eax - je .L_2 - popq %rbp - je .L_2 - .rept 3 - movl %eax, %fs:0x1 - .endr - xorl %eax, %eax - jmp .L_3 - jmp .L_3 - jmp .L_3 - .rept 2 - movl %eax, %fs:0x1 - .endr - movl %eax, -4(%rbp) - popq %rbp - cmp %rax, %rbp - je .L_2 - jmp .L_3 -.L_2: - movl -12(%rbp), %eax - movl %eax, -4(%rbp) -.L_3: - .rept 10 - movl %esi, -1200(%rbp) - .endr - jmp .L_3 - retq |