Changeset View
Changeset View
Standalone View
Standalone View
test/ExecutionEngine/RuntimeDyld/SystemZ/cfi-relo-pc64.s
// Test that R_390_PC32 and R_390_PC64 relocations can be generated. | // Test that R_390_PC32 and R_390_PC64 relocations can be generated. | ||||
// RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s -o - | llvm-readobj -s -sr -sd | FileCheck %s | // RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s -o - | llvm-readobj -s -sr -sd | FileCheck %s | ||||
// Test that RuntimeDyld can fix up such relocations. | // Test that RuntimeDyld can fix up such relocations. | ||||
// RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s -o %T/test-s390x-cfi-relo-pc64.o | // RUN: rm -rf %t && mkdir -p %t | ||||
// RUN: llc -mtriple=s390x-linux-gnu -filetype=obj %S/Inputs/rtdyld-globals.ll -o %T/test-s390x-rtdyld-globals.o | // RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s -o %t/test-s390x-cfi-relo-pc64.o | ||||
// RUN: llvm-rtdyld -triple=s390x-linux-gnu -verify %T/test-s390x-cfi-relo-pc64.o %T/test-s390x-rtdyld-globals.o | // RUN: llc -mtriple=s390x-linux-gnu -filetype=obj %S/Inputs/rtdyld-globals.ll -o %t/test-s390x-rtdyld-globals.o | ||||
// RUN: llvm-rtdyld -triple=s390x-linux-gnu -verify %t/test-s390x-cfi-relo-pc64.o %t/test-s390x-rtdyld-globals.o | |||||
f1: | f1: | ||||
.cfi_startproc | .cfi_startproc | ||||
.cfi_personality 0x9c, foo // DW_EH_PE_indirect|DW_EH_PE_pcrel|DW_EH_PE_sdata8 (0x9c) | .cfi_personality 0x9c, foo // DW_EH_PE_indirect|DW_EH_PE_pcrel|DW_EH_PE_sdata8 (0x9c) | ||||
lr %r0, %r0 | lr %r0, %r0 | ||||
.cfi_endproc | .cfi_endproc | ||||
// CHECK: Section { | // CHECK: Section { | ||||
Show All 17 Lines |