brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 18a991c Raw
26 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefixes=GCN,NO-ECC %s2; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s3; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -mattr=-sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s4; RUN: llc -mtriple=amdgcn -mcpu=gfx902 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s5; RUN: llc -mtriple=amdgcn -mcpu=gfx904 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s6; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,ECC %s7; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -mattr=-sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s8; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck -check-prefixes=GCN,ECC %s9 10; Make sure the correct set of targets are marked with11; FeatureDoesNotSupportSRAMECC, and +sramecc is ignored if it's never12; supported.13 14; GCN-LABEL: {{^}}load_global_hi_v2i16_reglo_vreg:15; NO-ECC: global_load_short_d16_hi16; ECC: global_load_{{ushort|u16}}17define void @load_global_hi_v2i16_reglo_vreg(ptr addrspace(1) %in, i16 %reg) {18entry:19  %gep = getelementptr inbounds i16, ptr addrspace(1) %in, i64 -204720  %load = load i16, ptr addrspace(1) %gep21  %build0 = insertelement <2 x i16> poison, i16 %reg, i32 022  %build1 = insertelement <2 x i16> %build0, i16 %load, i32 123  store <2 x i16> %build1, ptr addrspace(1) poison24  ret void25}26