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/store.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/store.ll')
-rw-r--r-- | test/CodeGen/R600/store.ll | 178 |
1 files changed, 89 insertions, 89 deletions
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll index dd27533..713ecd6 100644 --- a/test/CodeGen/R600/store.ll +++ b/test/CodeGen/R600/store.ll @@ -5,9 +5,9 @@ ;===------------------------------------------------------------------------===; ; Global Address Space ;===------------------------------------------------------------------------===; -; FUNC-LABEL: @store_i1 +; FUNC-LABEL: {{^}}store_i1: ; EG-CHECK: MEM_RAT MSKOR -; SI-CHECK: BUFFER_STORE_BYTE +; SI-CHECK: buffer_store_byte define void @store_i1(i1 addrspace(1)* %out) { entry: store i1 true, i1 addrspace(1)* %out @@ -15,7 +15,7 @@ entry: } ; i8 store -; EG-CHECK-LABEL: @store_i8 +; EG-CHECK-LABEL: {{^}}store_i8: ; EG-CHECK: MEM_RAT MSKOR T[[RW_GPR:[0-9]]].XW, T{{[0-9]}}.X ; EG-CHECK: VTX_READ_8 [[VAL:T[0-9]\.X]], [[VAL]] ; IG 0: Get the byte index and truncate the value @@ -34,8 +34,8 @@ entry: ; EG-CHECK: MOV T[[RW_GPR]].Y, 0.0 ; EG-CHECK: MOV * T[[RW_GPR]].Z, 0.0 -; SI-CHECK-LABEL: @store_i8 -; SI-CHECK: BUFFER_STORE_BYTE +; SI-CHECK-LABEL: {{^}}store_i8: +; SI-CHECK: buffer_store_byte define void @store_i8(i8 addrspace(1)* %out, i8 %in) { entry: @@ -44,7 +44,7 @@ entry: } ; i16 store -; EG-CHECK-LABEL: @store_i16 +; EG-CHECK-LABEL: {{^}}store_i16: ; EG-CHECK: MEM_RAT MSKOR T[[RW_GPR:[0-9]]].XW, T{{[0-9]}}.X ; EG-CHECK: VTX_READ_16 [[VAL:T[0-9]\.X]], [[VAL]] ; IG 0: Get the byte index and truncate the value @@ -63,20 +63,20 @@ entry: ; EG-CHECK: MOV T[[RW_GPR]].Y, 0.0 ; EG-CHECK: MOV * T[[RW_GPR]].Z, 0.0 -; SI-CHECK-LABEL: @store_i16 -; SI-CHECK: BUFFER_STORE_SHORT +; SI-CHECK-LABEL: {{^}}store_i16: +; SI-CHECK: buffer_store_short define void @store_i16(i16 addrspace(1)* %out, i16 %in) { entry: store i16 %in, i16 addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @store_v2i8 +; EG-CHECK-LABEL: {{^}}store_v2i8: ; EG-CHECK: MEM_RAT MSKOR ; EG-CHECK-NOT: MEM_RAT MSKOR -; SI-CHECK-LABEL: @store_v2i8 -; SI-CHECK: BUFFER_STORE_BYTE -; SI-CHECK: BUFFER_STORE_BYTE +; SI-CHECK-LABEL: {{^}}store_v2i8: +; SI-CHECK: buffer_store_byte +; SI-CHECK: buffer_store_byte define void @store_v2i8(<2 x i8> addrspace(1)* %out, <2 x i32> %in) { entry: %0 = trunc <2 x i32> %in to <2 x i8> @@ -85,13 +85,13 @@ entry: } -; EG-CHECK-LABEL: @store_v2i16 +; EG-CHECK-LABEL: {{^}}store_v2i16: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW -; CM-CHECK-LABEL: @store_v2i16 +; CM-CHECK-LABEL: {{^}}store_v2i16: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD -; SI-CHECK-LABEL: @store_v2i16 -; SI-CHECK: BUFFER_STORE_SHORT -; SI-CHECK: BUFFER_STORE_SHORT +; SI-CHECK-LABEL: {{^}}store_v2i16: +; SI-CHECK: buffer_store_short +; SI-CHECK: buffer_store_short define void @store_v2i16(<2 x i16> addrspace(1)* %out, <2 x i32> %in) { entry: %0 = trunc <2 x i32> %in to <2 x i16> @@ -99,15 +99,15 @@ entry: ret void } -; EG-CHECK-LABEL: @store_v4i8 +; EG-CHECK-LABEL: {{^}}store_v4i8: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW -; CM-CHECK-LABEL: @store_v4i8 +; CM-CHECK-LABEL: {{^}}store_v4i8: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD -; SI-CHECK-LABEL: @store_v4i8 -; SI-CHECK: BUFFER_STORE_BYTE -; SI-CHECK: BUFFER_STORE_BYTE -; SI-CHECK: BUFFER_STORE_BYTE -; SI-CHECK: BUFFER_STORE_BYTE +; SI-CHECK-LABEL: {{^}}store_v4i8: +; SI-CHECK: buffer_store_byte +; SI-CHECK: buffer_store_byte +; SI-CHECK: buffer_store_byte +; SI-CHECK: buffer_store_byte define void @store_v4i8(<4 x i8> addrspace(1)* %out, <4 x i32> %in) { entry: %0 = trunc <4 x i32> %in to <4 x i8> @@ -116,30 +116,30 @@ entry: } ; floating-point store -; EG-CHECK-LABEL: @store_f32 +; EG-CHECK-LABEL: {{^}}store_f32: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW T{{[0-9]+\.X, T[0-9]+\.X}}, 1 -; CM-CHECK-LABEL: @store_f32 +; CM-CHECK-LABEL: {{^}}store_f32: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD T{{[0-9]+\.X, T[0-9]+\.X}} -; SI-CHECK-LABEL: @store_f32 -; SI-CHECK: BUFFER_STORE_DWORD +; SI-CHECK-LABEL: {{^}}store_f32: +; SI-CHECK: buffer_store_dword define void @store_f32(float addrspace(1)* %out, float %in) { store float %in, float addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @store_v4i16 +; EG-CHECK-LABEL: {{^}}store_v4i16: ; EG-CHECK: MEM_RAT MSKOR ; EG-CHECK: MEM_RAT MSKOR ; EG-CHECK: MEM_RAT MSKOR ; EG-CHECK: MEM_RAT MSKOR ; EG-CHECK-NOT: MEM_RAT MSKOR -; SI-CHECK-LABEL: @store_v4i16 -; SI-CHECK: BUFFER_STORE_SHORT -; SI-CHECK: BUFFER_STORE_SHORT -; SI-CHECK: BUFFER_STORE_SHORT -; SI-CHECK: BUFFER_STORE_SHORT -; SI-CHECK-NOT: BUFFER_STORE_BYTE +; SI-CHECK-LABEL: {{^}}store_v4i16: +; SI-CHECK: buffer_store_short +; SI-CHECK: buffer_store_short +; SI-CHECK: buffer_store_short +; SI-CHECK: buffer_store_short +; SI-CHECK-NOT: buffer_store_byte define void @store_v4i16(<4 x i16> addrspace(1)* %out, <4 x i32> %in) { entry: %0 = trunc <4 x i32> %in to <4 x i16> @@ -148,12 +148,12 @@ entry: } ; vec2 floating-point stores -; EG-CHECK-LABEL: @store_v2f32 +; EG-CHECK-LABEL: {{^}}store_v2f32: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW -; CM-CHECK-LABEL: @store_v2f32 +; CM-CHECK-LABEL: {{^}}store_v2f32: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD -; SI-CHECK-LABEL: @store_v2f32 -; SI-CHECK: BUFFER_STORE_DWORDX2 +; SI-CHECK-LABEL: {{^}}store_v2f32: +; SI-CHECK: buffer_store_dwordx2 define void @store_v2f32(<2 x float> addrspace(1)* %out, float %a, float %b) { entry: @@ -163,23 +163,23 @@ entry: ret void } -; EG-CHECK-LABEL: @store_v4i32 +; EG-CHECK-LABEL: {{^}}store_v4i32: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW ; EG-CHECK-NOT: MEM_RAT_CACHELESS STORE_RAW -; CM-CHECK-LABEL: @store_v4i32 +; CM-CHECK-LABEL: {{^}}store_v4i32: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD ; CM-CHECK-NOT: MEM_RAT_CACHELESS STORE_DWORD -; SI-CHECK-LABEL: @store_v4i32 -; SI-CHECK: BUFFER_STORE_DWORDX4 +; SI-CHECK-LABEL: {{^}}store_v4i32: +; SI-CHECK: buffer_store_dwordx4 define void @store_v4i32(<4 x i32> addrspace(1)* %out, <4 x i32> %in) { entry: store <4 x i32> %in, <4 x i32> addrspace(1)* %out ret void } -; FUNC-LABEL: @store_i64_i8 +; FUNC-LABEL: {{^}}store_i64_i8: ; EG-CHECK: MEM_RAT MSKOR -; SI-CHECK: BUFFER_STORE_BYTE +; SI-CHECK: buffer_store_byte define void @store_i64_i8(i8 addrspace(1)* %out, i64 %in) { entry: %0 = trunc i64 %in to i8 @@ -187,9 +187,9 @@ entry: ret void } -; FUNC-LABEL: @store_i64_i16 +; FUNC-LABEL: {{^}}store_i64_i16: ; EG-CHECK: MEM_RAT MSKOR -; SI-CHECK: BUFFER_STORE_SHORT +; SI-CHECK: buffer_store_short define void @store_i64_i16(i16 addrspace(1)* %out, i64 %in) { entry: %0 = trunc i64 %in to i16 @@ -201,99 +201,99 @@ entry: ; Local Address Space ;===------------------------------------------------------------------------===; -; FUNC-LABEL: @store_local_i1 +; FUNC-LABEL: {{^}}store_local_i1: ; EG-CHECK: LDS_BYTE_WRITE -; SI-CHECK: DS_WRITE_B8 +; SI-CHECK: ds_write_b8 define void @store_local_i1(i1 addrspace(3)* %out) { entry: store i1 true, i1 addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_i8 +; EG-CHECK-LABEL: {{^}}store_local_i8: ; EG-CHECK: LDS_BYTE_WRITE -; SI-CHECK-LABEL: @store_local_i8 -; SI-CHECK: DS_WRITE_B8 +; SI-CHECK-LABEL: {{^}}store_local_i8: +; SI-CHECK: ds_write_b8 define void @store_local_i8(i8 addrspace(3)* %out, i8 %in) { store i8 %in, i8 addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_i16 +; EG-CHECK-LABEL: {{^}}store_local_i16: ; EG-CHECK: LDS_SHORT_WRITE -; SI-CHECK-LABEL: @store_local_i16 -; SI-CHECK: DS_WRITE_B16 +; SI-CHECK-LABEL: {{^}}store_local_i16: +; SI-CHECK: ds_write_b16 define void @store_local_i16(i16 addrspace(3)* %out, i16 %in) { store i16 %in, i16 addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_v2i16 +; EG-CHECK-LABEL: {{^}}store_local_v2i16: ; EG-CHECK: LDS_WRITE -; CM-CHECK-LABEL: @store_local_v2i16 +; CM-CHECK-LABEL: {{^}}store_local_v2i16: ; CM-CHECK: LDS_WRITE -; SI-CHECK-LABEL: @store_local_v2i16 -; SI-CHECK: DS_WRITE_B16 -; SI-CHECK: DS_WRITE_B16 +; SI-CHECK-LABEL: {{^}}store_local_v2i16: +; SI-CHECK: ds_write_b16 +; SI-CHECK: ds_write_b16 define void @store_local_v2i16(<2 x i16> addrspace(3)* %out, <2 x i16> %in) { entry: store <2 x i16> %in, <2 x i16> addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_v4i8 +; EG-CHECK-LABEL: {{^}}store_local_v4i8: ; EG-CHECK: LDS_WRITE -; CM-CHECK-LABEL: @store_local_v4i8 +; CM-CHECK-LABEL: {{^}}store_local_v4i8: ; CM-CHECK: LDS_WRITE -; SI-CHECK-LABEL: @store_local_v4i8 -; SI-CHECK: DS_WRITE_B8 -; SI-CHECK: DS_WRITE_B8 -; SI-CHECK: DS_WRITE_B8 -; SI-CHECK: DS_WRITE_B8 +; SI-CHECK-LABEL: {{^}}store_local_v4i8: +; SI-CHECK: ds_write_b8 +; SI-CHECK: ds_write_b8 +; SI-CHECK: ds_write_b8 +; SI-CHECK: ds_write_b8 define void @store_local_v4i8(<4 x i8> addrspace(3)* %out, <4 x i8> %in) { entry: store <4 x i8> %in, <4 x i8> addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_v2i32 +; EG-CHECK-LABEL: {{^}}store_local_v2i32: ; EG-CHECK: LDS_WRITE ; EG-CHECK: LDS_WRITE -; CM-CHECK-LABEL: @store_local_v2i32 +; CM-CHECK-LABEL: {{^}}store_local_v2i32: ; CM-CHECK: LDS_WRITE ; CM-CHECK: LDS_WRITE -; SI-CHECK-LABEL: @store_local_v2i32 -; SI-CHECK: DS_WRITE_B64 +; SI-CHECK-LABEL: {{^}}store_local_v2i32: +; SI-CHECK: ds_write_b64 define void @store_local_v2i32(<2 x i32> addrspace(3)* %out, <2 x i32> %in) { entry: store <2 x i32> %in, <2 x i32> addrspace(3)* %out ret void } -; EG-CHECK-LABEL: @store_local_v4i32 +; EG-CHECK-LABEL: {{^}}store_local_v4i32: ; EG-CHECK: LDS_WRITE ; EG-CHECK: LDS_WRITE ; EG-CHECK: LDS_WRITE ; EG-CHECK: LDS_WRITE -; CM-CHECK-LABEL: @store_local_v4i32 +; CM-CHECK-LABEL: {{^}}store_local_v4i32: ; CM-CHECK: LDS_WRITE ; CM-CHECK: LDS_WRITE ; CM-CHECK: LDS_WRITE ; CM-CHECK: LDS_WRITE -; SI-CHECK-LABEL: @store_local_v4i32 -; SI-CHECK: DS_WRITE_B32 -; SI-CHECK: DS_WRITE_B32 -; SI-CHECK: DS_WRITE_B32 -; SI-CHECK: DS_WRITE_B32 +; SI-CHECK-LABEL: {{^}}store_local_v4i32: +; SI-CHECK: ds_write_b32 +; SI-CHECK: ds_write_b32 +; SI-CHECK: ds_write_b32 +; SI-CHECK: ds_write_b32 define void @store_local_v4i32(<4 x i32> addrspace(3)* %out, <4 x i32> %in) { entry: store <4 x i32> %in, <4 x i32> addrspace(3)* %out ret void } -; FUNC-LABEL: @store_local_i64_i8 +; FUNC-LABEL: {{^}}store_local_i64_i8: ; EG-CHECK: LDS_BYTE_WRITE -; SI-CHECK: DS_WRITE_B8 +; SI-CHECK: ds_write_b8 define void @store_local_i64_i8(i8 addrspace(3)* %out, i64 %in) { entry: %0 = trunc i64 %in to i8 @@ -301,9 +301,9 @@ entry: ret void } -; FUNC-LABEL: @store_local_i64_i16 +; FUNC-LABEL: {{^}}store_local_i64_i16: ; EG-CHECK: LDS_SHORT_WRITE -; SI-CHECK: DS_WRITE_B16 +; SI-CHECK: ds_write_b16 define void @store_local_i64_i16(i16 addrspace(3)* %out, i64 %in) { entry: %0 = trunc i64 %in to i16 @@ -318,12 +318,12 @@ entry: ; Evergreen / Northern Islands don't support 64-bit stores yet, so there should ; be two 32-bit stores. -; EG-CHECK-LABEL: @vecload2 +; EG-CHECK-LABEL: {{^}}vecload2: ; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW -; CM-CHECK-LABEL: @vecload2 +; CM-CHECK-LABEL: {{^}}vecload2: ; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD -; SI-CHECK-LABEL: @vecload2 -; SI-CHECK: BUFFER_STORE_DWORDX2 +; SI-CHECK-LABEL: {{^}}vecload2: +; SI-CHECK: buffer_store_dwordx2 define void @vecload2(i32 addrspace(1)* nocapture %out, i32 addrspace(2)* nocapture %mem) #0 { entry: %0 = load i32 addrspace(2)* %mem, align 4 @@ -339,7 +339,7 @@ attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"= ; When i128 was a legal type this program generated cannot select errors: -; FUNC-LABEL: @i128-const-store +; FUNC-LABEL: {{^}}"i128-const-store": ; FIXME: We should be able to to this with one store instruction ; EG-CHECK: STORE_RAW ; EG-CHECK: STORE_RAW @@ -349,8 +349,8 @@ attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"= ; CM-CHECK: STORE_DWORD ; CM-CHECK: STORE_DWORD ; CM-CHECK: STORE_DWORD -; SI: BUFFER_STORE_DWORDX2 -; SI: BUFFER_STORE_DWORDX2 +; SI: buffer_store_dwordx2 +; SI: buffer_store_dwordx2 define void @i128-const-store(i32 addrspace(1)* %out) { entry: store i32 1, i32 addrspace(1)* %out, align 4 |