diff options
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/load-local-f32.ll')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/load-local-f32.ll | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/load-local-f32.ll b/llvm/test/CodeGen/AMDGPU/load-local-f32.ll index 09d7145424d..f035d22018a 100644 --- a/llvm/test/CodeGen/AMDGPU/load-local-f32.ll +++ b/llvm/test/CodeGen/AMDGPU/load-local-f32.ll @@ -1,9 +1,10 @@ -; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s -; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s -; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s +; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,SICIVI,FUNC %s +; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,SICIVI,FUNC %s +; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s ; FUNC-LABEL: {{^}}load_f32_local: -; GCN: s_mov_b32 m0 +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 ; GCN: ds_read_b32 ; EG: LDS_READ_RET @@ -15,7 +16,9 @@ entry: } ; FUNC-LABEL: {{^}}load_v2f32_local: -; GCN: s_mov_b32 m0 +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 + ; GCN: ds_read_b64 ; EG: LDS_READ_RET @@ -29,6 +32,9 @@ entry: ; FIXME: should this do a read2_b64? ; FUNC-LABEL: {{^}}local_load_v3f32: +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 + ; GCN-DAG: ds_read_b32 v{{[0-9]+}}, v{{[0-9]+}} offset:8 ; GCN-DAG: ds_read_b64 v{{\[[0-9]+:[0-9]+\]}}, v{{[0-9]+$}} ; GCN: s_waitcnt @@ -46,6 +52,9 @@ entry: } ; FUNC-LABEL: {{^}}local_load_v4f32: +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 + ; GCN: ds_read2_b64 ; EG: LDS_READ_RET @@ -60,6 +69,9 @@ entry: } ; FUNC-LABEL: {{^}}local_load_v8f32: +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 + ; GCN: ds_read2_b64 ; GCN: ds_read2_b64 @@ -79,6 +91,9 @@ entry: } ; FUNC-LABEL: {{^}}local_load_v16f32: +; SICIVI: s_mov_b32 m0 +; GFX9-NOT: m0 + ; GCN: ds_read2_b64 ; GCN: ds_read2_b64 ; GCN: ds_read2_b64 |

