; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF-CHECK %s
; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG-CHECK %s

; ELF-CHECK: Format: ELF32
; ELF-CHECK: Name: .AMDGPU.config

; CONFIG-CHECK: .section .AMDGPU.config
; CONFIG-CHECK-NEXT: .long   2
; CONFIG-CHECK-NEXT: .long   1
define void @test(float addrspace(1)* %out, i32 %p) {
   %i = add i32 %p, 2
   %r = bitcast i32 %i to float
   store float %r, float addrspace(1)* %out
   ret void
}

; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF-CHECK %s
; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG-CHECK %s

; ELF-CHECK: Format: ELF32
; ELF-CHECK: Name: .AMDGPU.config

; CONFIG-CHECK: .section .AMDGPU.config
; CONFIG-CHECK-NEXT: .long   2
; CONFIG-CHECK-NEXT: .long   1
; CONFIG-CHECK-NEXT: .long   0
define void @test(float addrspace(1)* %out, i32 %p) {
   %i = add i32 %p, 2
   %r = bitcast i32 %i to float
   store float %r, float addrspace(1)* %out
   ret void
}

Add a test to check that use_kill is emitted
R600: Add a test to check that use_kill is emitted

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@180958 91177308-0d34-0410-b5e6-96231b3b80d8
