18 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -strict-whitespace -check-prefix=GCN -check-prefix=NOPRIM %s2; RUN: llc -mtriple=amdgcn -mcpu=gfx1010 < %s | FileCheck -strict-whitespace -check-prefix=GCN -check-prefix=PRIM %s3; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 < %s | FileCheck -strict-whitespace -check-prefix=GCN -check-prefix=PRIM %s4; RUN: llc -mtriple=amdgcn -mcpu=gfx1200 < %s | FileCheck -strict-whitespace -check-prefix=GCN -check-prefix=PRIM %s5 6declare void @llvm.amdgcn.exp.i32(i32, i32, i32, i32, i32, i32, i1, i1) #17 8; GCN-LABEL: {{^}}test_export_prim_i32:9; NOPRIM: exp invalid_target_20 v0, off, off, off done{{$}}10; PRIM: {{exp|export}} prim v0, off, off, off done{{$}}11define amdgpu_gs void @test_export_prim_i32(i32 inreg %a) #0 {12 call void @llvm.amdgcn.exp.i32(i32 20, i32 1, i32 %a, i32 poison, i32 poison, i32 poison, i1 true, i1 false)13 ret void14}15 16attributes #0 = { nounwind }17attributes #1 = { nounwind inaccessiblememonly }18