[llvm] r273073 - Add a test for r273022.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 17:24:49 PDT 2016
Author: rafael
Date: Fri Jun 17 19:24:49 2016
New Revision: 273073
URL: http://llvm.org/viewvc/llvm-project?rev=273073&view=rev
Log:
Add a test for r273022.
Added:
llvm/trunk/test/tools/gold/X86/relax-relocs.ll
Added: llvm/trunk/test/tools/gold/X86/relax-relocs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/relax-relocs.ll?rev=273073&view=auto
==============================================================================
--- llvm/trunk/test/tools/gold/X86/relax-relocs.ll (added)
+++ llvm/trunk/test/tools/gold/X86/relax-relocs.ll Fri Jun 17 19:24:49 2016
@@ -0,0 +1,14 @@
+; RUN: llvm-as %s -o %t.o
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: --plugin-opt=save-temps \
+; RUN: -shared %t.o -o %t.so
+; RUN: llvm-readobj -r %t.so.o | FileCheck %s
+
+; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX
+; CHECK: R_X86_64_GOTPCREL foo
+
+ at foo = external global i32
+define i32 @bar() {
+ %t = load i32, i32* @foo
+ ret i32 %t
+}
More information about the llvm-commits
mailing list