[PATCH] D21400: AMDGPU: Emit R_AMDGPU_ABS32_{HI, LO} for scratch buffer relocations

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 06:03:36 PDT 2016

rafael added inline comments.

Comment at: test/CodeGen/AMDGPU/large-alloca-compute.ll:5
@@ -4,2 +4,3 @@
 ; RUN: llc -march=amdgcn -mcpu=carrizo -mtriple=amdgcn-unknown-amdhsa -mattr=-flat-for-global < %s | FileCheck -check-prefix=GCNHSA -check-prefix=VIHSA -check-prefix=ALL %s
+; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs -filetype=obj | llvm-readobj -relocations | FileCheck --check-prefix=ELF %s
Why do you need to use "llc -filetype=obj"?

Please split this into tow tests. One prints assembly and checks it.
Another parses assembly and checks the relocations.


More information about the llvm-commits mailing list