diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-24 04:31:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-24 04:31:45 +0000 |
commit | 2c166857b35a052468f95441a55eec5c5126b3d7 (patch) | |
tree | cfcebdad6279bc2814e40a7b57c34a9f05cad86b /llvm/test | |
parent | 9122b2195fbc6879f3ec5415875ed054f4eb129a (diff) | |
download | bcm5719-llvm-2c166857b35a052468f95441a55eec5c5126b3d7.tar.gz bcm5719-llvm-2c166857b35a052468f95441a55eec5c5126b3d7.zip |
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.
llvm-svn: 306198
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/branch-relaxation.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/branch-relaxation.ll b/llvm/test/CodeGen/AMDGPU/branch-relaxation.ll index d3f835bdf16..578f94241c6 100644 --- a/llvm/test/CodeGen/AMDGPU/branch-relaxation.ll +++ b/llvm/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 |