25 lines · plain
1# REQUIRES: x862 3## Test we enable data sections for LTO so --symbol-ordering-fils is respected4## for data symbols.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o7# RUN: llvm-as %p/Inputs/data-ordering-lto.ll -o %t.bc8 9# RUN: echo "tin " > %t_order_lto.txt10# RUN: echo "dipsy " >> %t_order_lto.txt11# RUN: echo "pat " >> %t_order_lto.txt12 13# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t14# RUN: llvm-nm -v %t | FileCheck %s15 16# CHECK: D tin17# CHECK-NEXT: D dipsy18# CHECK-NEXT: D pat19 20.globl _start21_start:22 movl $pat, %ecx23 movl $dipsy, %ebx24 movl $tin, %eax25