18 lines · plain
1# REQUIRES: sparc2# RUN: llvm-mc -filetype=obj -triple=sparcv9 %s -o %t.o3# RUN: ld.lld %t.o -o %t4# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=LE %s5 6## %hix(@tpoff(a)) = ~(st_value(a) - 1026) >> 10 = 17## %lo(@tpoff(a)) = (st_value(a) - 1026) & 0x3ff | 0x1c00 = -2 (0x1ffe)8# LE: sethi 0x1, %o09# LE-NEXT: xor %o0, -0x2, %o010sethi %tle_hix22(a), %o011xor %o0, %tle_lox10(a), %o012 13.section .tbss14 .globl a15a:16 .zero 1024+217b:18