diff options
Diffstat (limited to 'test/COFF/Inputs/comdat-jumptable2.s')
-rw-r--r-- | test/COFF/Inputs/comdat-jumptable2.s | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/COFF/Inputs/comdat-jumptable2.s b/test/COFF/Inputs/comdat-jumptable2.s deleted file mode 100644 index 8990d4c0d7f3f..0000000000000 --- a/test/COFF/Inputs/comdat-jumptable2.s +++ /dev/null @@ -1,35 +0,0 @@ - .section .text@comdatfunc, "x" - .linkonce discard - .globl comdatfunc -comdatfunc: - leaq .Ljumptable(%rip), %rax - movslq (%rax, %rcx, 4), %rcx - addq %rcx, %rax - jmp *%rax - - .section .rdata, "dr" - .long 0xcccccccc -.Ljumptable: - .long .Ltail1-.Ljumptable - .long .Ltail2-.Ljumptable - .long .Ltail3-.Ljumptable - .long 0xdddddddd - - .section .text@comdatfunc, "x" -# If assembled with binutils, the following line can be kept in: -# .linkonce discard -.Ltail1: - movl $1, %eax - ret -.Ltail2: - movl $2, %eax - ret -.Ltail3: - movl $3, %eax - ret - - .text - .globl otherfunc -otherfunc: - call comdatfunc - ret |