From: Rafael Espindola Date: Sat, 24 Jun 2017 04:31:45 +0000 (+0000) Subject: Test the object file creation too. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82693db1503ddb12f92099a92eb6c547d3f61722;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306198 cdac9f57-aa62-4fd3-8940-286f4534e8a0 --- diff --git a/test/CodeGen/AMDGPU/branch-relaxation.ll b/test/CodeGen/AMDGPU/branch-relaxation.ll index d3f835bdf16..578f94241c6 100644 --- a/test/CodeGen/AMDGPU/branch-relaxation.ll +++ b/test/CodeGen/AMDGPU/branch-relaxation.ll @@ -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