Home | History | Annotate | Download | only in R600
      1 ; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF-CHECK %s
      2 ; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG-CHECK %s
      3 
      4 ; ELF-CHECK: Format: ELF32
      5 ; ELF-CHECK: Name: .AMDGPU.config
      6 
      7 ; CONFIG-CHECK: .section .AMDGPU.config
      8 ; CONFIG-CHECK-NEXT: .long   166100
      9 ; CONFIG-CHECK-NEXT: .long   2
     10 ; CONFIG-CHECK-NEXT: .long   165900
     11 ; CONFIG-CHECK-NEXT: .long   0
     12 define void @test(float addrspace(1)* %out, i32 %p) {
     13    %i = add i32 %p, 2
     14    %r = bitcast i32 %i to float
     15    store float %r, float addrspace(1)* %out
     16    ret void
     17 }
     18