]> granicus.if.org Git - llvm/commitdiff
Test the object file creation too.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 24 Jun 2017 04:31:45 +0000 (04:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 24 Jun 2017 04:31:45 +0000 (04:31 +0000)
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

test/CodeGen/AMDGPU/branch-relaxation.ll

index d3f835bdf1632cd49258b15791328be6d0bd0d9f..578f94241c6a0cc895c6cf3b58cddcb461698f13 100644 (file)
@@ -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