18 lines · plain
1! RUN: llvm-mc %s -triple=sparcel-linux-gnu -show-encoding | FileCheck %s2! RUN: llvm-mc -triple=sparcel-linux-gnu -filetype=obj < %s | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-OBJ3 4 ! CHECK-OBJ: .text:5 .BB0:6 7 ! Ensure instructions are emitted in reversed byte order:8 9 ! CHECK: call %g1 ! encoding: [0x00,0x40,0xc0,0x9f]10 ! CHECK-OBJ: 0: 00 40 c0 9f call %g111 call %g112 13 ! ...and that fixups are applied to the correct bytes.14 15 ! CHECK: ba .BB0 ! encoding: [A,A,0b10AAAAAA,0x10]16 ! CHECK-OBJ: 4: ff ff bf 10 ba 0x017 ba .BB018