brintos

brintos / llvm-project-archived public Read only

0
0
Text · 802 B · 429d0d9 Raw
16 lines · plain
1# RUN: not --crash llc -mtriple=amdgcn -mcpu=tonga -run-pass=machineverifier -filetype=null %s 2>&1 | FileCheck -check-prefix=GFX8-ERR %s2# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=machineverifier -o - %s 2>&1 | FileCheck -check-prefix=GFX9 %s3# RUN: not --crash llc -mtriple=amdgcn -mcpu=tonga --passes='machine-function(verify)' -filetype=null %s 2>&1 | FileCheck -check-prefix=GFX8-ERR %s4# RUN: llc -mtriple=amdgcn -mcpu=gfx900 --passes='machine-function(verify)' -o - %s 2>&1 | FileCheck -check-prefix=GFX9 %s5 6# GFX8-ERR: *** Bad machine code: scalar stores must use m0 as offset register ***7# GFX9: S_STORE_DWORD_SGPR8---9name:            scalar_store_soffset_sgpr10body:             |11  bb.0:12    S_STORE_DWORD_SGPR undef $sgpr2, undef $sgpr0_sgpr1, undef $sgpr10, 013    S_ENDPGM 014 15...16