[llvm] r306198 - Test the object file creation too.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 21:31:45 PDT 2017


Author: rafael
Date: Fri Jun 23 23:31:45 2017
New Revision: 306198

URL: http://llvm.org/viewvc/llvm-project?rev=306198&view=rev
Log:
Test the object file creation too.

This should *really* be a llvm-mc test, but the parser is broken.
See PR33579 for the parser bug.

Modified:
    llvm/trunk/test/CodeGen/AMDGPU/branch-relaxation.ll

Modified: llvm/trunk/test/CodeGen/AMDGPU/branch-relaxation.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/branch-relaxation.ll?rev=306198&r1=306197&r2=306198&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/branch-relaxation.ll (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/branch-relaxation.ll Fri Jun 23 23:31:45 2017
@@ -1,4 +1,14 @@
 ; RUN: llc -march=amdgcn -verify-machineinstrs -amdgpu-s-branch-bits=4 < %s | FileCheck -check-prefix=GCN %s
+
+
+; FIXME: We should use llvm-mc for this, but we can't even parse our own output.
+;        See PR33579.
+; RUN: llc -march=amdgcn -verify-machineinstrs -amdgpu-s-branch-bits=4 -o %t.o -filetype=obj
+; RUN: llvm-readobj -r %t.o | FileCheck --check-prefix=OBJ %s
+
+; OBJ:       Relocations [
+; OBJ-NEXT: ]
+
 ; Restrict maximum branch to between +7 and -8 dwords
 
 ; Used to emit an always 4 byte instruction. Inline asm always assumes




More information about the llvm-commits mailing list