brintos

brintos / llvm-project-archived public Read only

0
0
Text · 868 B · 68dfca0 Raw
23 lines · plain
1; RUN: llc -mtriple=amdgcn--amdpal < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn--amdpal -mcpu=tonga < %s | FileCheck -check-prefix=GCN %s3; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN -enable-var-scope %s4 5; GCN-LABEL: {{^}}hs_amdpal:6; GCN:         .amdgpu_pal_metadata7; GCN-NEXT: ---8; GCN-NEXT: amdpal.pipelines:9; GCN-NEXT:   - .hardware_stages:10; GCN-NEXT:       .hs:11; GCN-NEXT:         .entry_point:    _amdgpu_hs12; GCN-NEXT:         .entry_point_symbol:    hs_amdpal13; GCN-NEXT:         .scratch_memory_size: 014; GCN:     .registers:15; GCN-NEXT:       '0x2d0a (SPI_SHADER_PGM_RSRC1_HS)': 016; GCN-NEXT:       '0x2d0b (SPI_SHADER_PGM_RSRC2_HS)': 017; GCN-NEXT: ...18; GCN-NEXT:         .end_amdgpu_pal_metadata19define amdgpu_hs half @hs_amdpal(half %arg0) {20  %add = fadd half %arg0, 1.021  ret half %add22}23