diff options
author | Stephen Hines <srhines@google.com> | 2014-12-01 14:51:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-02 16:08:10 -0800 |
commit | 37ed9c199ca639565f6ce88105f9e39e898d82d0 (patch) | |
tree | 8fb36d3910e3ee4c4e1b7422f4f017108efc52f5 /test/CodeGen/R600/local-memory.ll | |
parent | d2327b22152ced7bc46dc629fc908959e8a52d03 (diff) | |
download | external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.zip external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.gz external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.bz2 |
Update aosp/master LLVM for rebase to r222494.
Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
Diffstat (limited to 'test/CodeGen/R600/local-memory.ll')
-rw-r--r-- | test/CodeGen/R600/local-memory.ll | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/test/CodeGen/R600/local-memory.ll b/test/CodeGen/R600/local-memory.ll index 51af484..9b13cb2 100644 --- a/test/CodeGen/R600/local-memory.ll +++ b/test/CodeGen/R600/local-memory.ll @@ -1,32 +1,30 @@ -; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=EG-CHECK %s -; RUN: llc < %s -march=r600 -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI-CHECK %s -; RUN: llc < %s -march=r600 -mcpu=bonaire -verify-machineinstrs | FileCheck --check-prefix=CI-CHECK %s +; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s +; RUN: llc -march=r600 -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s +; RUN: llc -march=r600 -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s -@local_memory.local_mem = internal unnamed_addr addrspace(3) global [128 x i32] zeroinitializer, align 4 +@local_memory.local_mem = internal unnamed_addr addrspace(3) global [128 x i32] undef, align 4 -; EG-CHECK-LABEL: @local_memory -; SI-CHECK-LABEL: @local_memory -; CI-CHECK-LABEL: @local_memory +; FUNC-LABEL: {{^}}local_memory: ; Check that the LDS size emitted correctly -; EG-CHECK: .long 166120 -; EG-CHECK-NEXT: .long 128 -; SI-CHECK: .long 47180 -; SI-CHECK-NEXT: .long 65536 -; CI-CHECK: .long 47180 -; CI-CHECK-NEXT: .long 32768 +; EG: .long 166120 +; EG-NEXT: .long 128 +; SI: .long 47180 +; SI-NEXT: .long 65536 +; CI: .long 47180 +; CI-NEXT: .long 32768 -; EG-CHECK: LDS_WRITE -; SI-CHECK-NOT: S_WQM_B64 -; SI-CHECK: DS_WRITE_B32 +; EG: LDS_WRITE +; SI-NOT: s_wqm_b64 +; SI: ds_write_b32 ; GROUP_BARRIER must be the last instruction in a clause -; EG-CHECK: GROUP_BARRIER -; EG-CHECK-NEXT: ALU clause -; SI-CHECK: S_BARRIER +; EG: GROUP_BARRIER +; EG-NEXT: ALU clause +; SI: s_barrier -; EG-CHECK: LDS_READ_RET -; SI-CHECK: DS_READ_B32 {{v[0-9]+}}, +; EG: LDS_READ_RET +; SI: ds_read_b32 {{v[0-9]+}}, define void @local_memory(i32 addrspace(1)* %out) { entry: |