brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 46ca26a Raw
35 lines · plain
1; RUN: llc -mtriple=amdgcn < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -filetype=obj -o %t.o < %s && llvm-readobj -r %t.o | FileCheck --check-prefix=ELF %s3 4; RUN: llc -global-isel -mtriple=amdgcn < %s | FileCheck -check-prefix=GCN %s5; RUN: llc -global-isel -mtriple=amdgcn--amdpal -mcpu=gfx900 -filetype=obj -o %t.o < %s && llvm-readobj -r %t.o | FileCheck --check-prefix=ELF %s6 7; GCN-LABEL: {{^}}ps_main:8; GCN: v_mov_b32_{{.*}} v[[relocreg:[0-9]+]], doff_0_0_b@abs32@lo9; GCN-NEXT: exp {{.*}} v[[relocreg]], {{.*}}10; GCN-NEXT: s_endpgm11; GCN-NEXT: .Lfunc_end12 13; ELF: Relocations [14; ELF-NEXT: Section (3) .rel.text {15; ELF-NEXT: 0x{{[0-9]+}} R_AMDGPU_ABS32_LO doff_0_0_b{{$}}16 17define amdgpu_ps void @ps_main(i32 %arg, i32 inreg %arg1, i32 inreg %arg2) local_unnamed_addr #0 {18  %rc = call i32 @llvm.amdgcn.reloc.constant(metadata !1)19  %rcf = bitcast i32 %rc to float20  call void @llvm.amdgcn.exp.f32(i32 40, i32 15, float %rcf, float poison, float poison, float poison, i1 false, i1 false) #021  ret void22}23 24; Function Attrs: inaccessiblememonly nounwind25declare void @llvm.amdgcn.exp.f32(i32 immarg, i32 immarg, float, float, float, float, i1 immarg, i1 immarg) #126 27; Function Attrs: nounwind readnone speculatable28declare i32 @llvm.amdgcn.reloc.constant(metadata) #229 30attributes #0 = { nounwind }31attributes #1 = { inaccessiblememonly nounwind }32attributes #2 = { nounwind readnone speculatable }33 34!1 = !{!"doff_0_0_b"}35