2 # RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %tle.o
3 # RUN: ld.lld --hash-style=sysv -discard-all -shared %tle.o -o %tle.so
4 # RUN: llvm-readelf -hSl %tle.so | FileCheck --check-prefixes=CHECK,LE %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %tbe.o
7 # RUN: ld.lld --hash-style=sysv -discard-all -shared %tbe.o -o %tbe.so
8 # RUN: llvm-readelf -hSl %tbe.so | FileCheck --check-prefixes=CHECK,BE %s
11 # LE-NEXT: Data: 2's complement, little endian
12 # BE-NEXT: Data: 2's complement, big endian
13 # CHECK-NEXT: Version: 1 (current)
14 # CHECK-NEXT: OS/ABI: UNIX - System V
15 # CHECK-NEXT: ABI Version: 0
16 # CHECK-NEXT: Type: DYN (Shared object file)
17 # CHECK-NEXT: Machine: PowerPC64
19 # CHECK: Name Type Address Off Size ES Flg Lk Inf Al
20 # CHECK: .branch_lt NOBITS {{.*}} 000000 00 WA 0 0 8
23 # Exits with return code 55 on linux.