Update SystemZ/Large test generators to handle new gep IR syntax
[oota-llvm.git] / test / CodeGen / R600 / elf.ll
1 ; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs -filetype=obj | llvm-readobj -s -symbols - | FileCheck --check-prefix=ELF %s
2 ; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG %s
3 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs -filetype=obj | llvm-readobj -s -symbols - | FileCheck --check-prefix=ELF %s
4 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG %s
5
6 ; ELF: Format: ELF32
7 ; ELF: Name: .AMDGPU.config
8 ; ELF: Type: SHT_PROGBITS
9
10 ; ELF: Symbol {
11 ; ELF: Name: test
12 ; ELF: Binding: Global
13
14 ; CONFIG: .align 256
15 ; CONFIG: test:
16 ; CONFIG: .section .AMDGPU.config
17 ; CONFIG-NEXT: .long   45096
18 ; CONFIG-NEXT: .long   0
19 define void @test(i32 %p) #0 {
20    %i = add i32 %p, 2
21    %r = bitcast i32 %i to float
22    call void @llvm.SI.export(i32 15, i32 0, i32 1, i32 12, i32 0, float %r, float %r, float %r, float %r)
23    ret void
24 }
25
26 declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)
27
28 attributes #0 = { "ShaderType"="0" } ; Pixel Shader