source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/elf.r600.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 555 bytes
Line 
1; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF %s
2; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG %s
3
4; ELF: Format: ELF32
5; ELF: Name: .AMDGPU.config
6
7; CONFIG: .section .AMDGPU.config
8; CONFIG-NEXT: .long   166100
9; CONFIG-NEXT: .long   2
10; CONFIG-NEXT: .long   165900
11; CONFIG-NEXT: .long   0
12define 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}
Note: See TracBrowser for help on using the repository browser.