Skip to content

Commit c533127

Browse files
Shoreshenarsenm
andauthored
AMDGPU: Add sgpr bit convert tests (#136112)
Add inreg test for sgpr purpose This is the second PR after #135729. To test sgpr inputs and outputs, using inreg cases for bit-conversions --------- Co-authored-by: Matt Arsenault <[email protected]>
1 parent b8ba963 commit c533127

25 files changed

+648655
-192767
lines changed

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll

Lines changed: 197715 additions & 64421 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll

Lines changed: 16900 additions & 3904 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.160bit.ll

Lines changed: 2603 additions & 745 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.16bit.ll

Lines changed: 870 additions & 154 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.192bit.ll

Lines changed: 6273 additions & 1695 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.224bit.ll

Lines changed: 3203 additions & 968 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll

Lines changed: 29651 additions & 7090 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.288bit.ll

Lines changed: 3867 additions & 1181 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll

Lines changed: 31179 additions & 6030 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.32bit.ll

Lines changed: 6687 additions & 1611 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.352bit.ll

Lines changed: 4457 additions & 1414 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.384bit.ll

Lines changed: 10016 additions & 2941 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.448bit.ll

Lines changed: 11277 additions & 3375 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.48bit.ll

Lines changed: 1165 additions & 238 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll

Lines changed: 65125 additions & 15619 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.576bit.ll

Lines changed: 23972 additions & 5981 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.640bit.ll

Lines changed: 25724 additions & 6862 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.64bit.ll

Lines changed: 11623 additions & 2639 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.704bit.ll

Lines changed: 28422 additions & 7819 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll

Lines changed: 31516 additions & 8911 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll

Lines changed: 34693 additions & 10040 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll

Lines changed: 43358 additions & 16586 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll

Lines changed: 49455 additions & 20428 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll

Lines changed: 8886 additions & 2097 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.ptr.ll

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22

3-
; RUN: llc -mtriple=amdgcn < %s | FileCheck -check-prefix=GCN %s
4-
; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefixes=VI %s
5-
; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefixes=GFX9 %s
6-
; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GFX11 %s
3+
; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefix=SI %s
4+
; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=VI %s
5+
; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefix=GFX9 %s
6+
; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 < %s | FileCheck -check-prefix=GFX11 %s
77

88
define amdgpu_kernel void @bitcast_i8ptr_v16i8ptr(ptr addrspace(1) %out, ptr addrspace(1) %in) {
9-
; GCN-LABEL: bitcast_i8ptr_v16i8ptr:
10-
; GCN: ; %bb.0: ; %entry
11-
; GCN-NEXT: s_load_dwordx4 s[0:3], s[4:5], 0x9
12-
; GCN-NEXT: s_waitcnt lgkmcnt(0)
13-
; GCN-NEXT: s_load_dwordx4 s[4:7], s[2:3], 0x0
14-
; GCN-NEXT: s_mov_b32 s3, 0xf000
15-
; GCN-NEXT: s_mov_b32 s2, -1
16-
; GCN-NEXT: s_waitcnt lgkmcnt(0)
17-
; GCN-NEXT: v_mov_b32_e32 v0, s4
18-
; GCN-NEXT: v_mov_b32_e32 v1, s5
19-
; GCN-NEXT: v_mov_b32_e32 v2, s6
20-
; GCN-NEXT: v_mov_b32_e32 v3, s7
21-
; GCN-NEXT: buffer_store_dwordx4 v[0:3], off, s[0:3], 0
22-
; GCN-NEXT: s_endpgm
9+
; SI-LABEL: bitcast_i8ptr_v16i8ptr:
10+
; SI: ; %bb.0: ; %entry
11+
; SI-NEXT: s_load_dwordx4 s[0:3], s[4:5], 0x9
12+
; SI-NEXT: s_waitcnt lgkmcnt(0)
13+
; SI-NEXT: s_load_dwordx4 s[4:7], s[2:3], 0x0
14+
; SI-NEXT: s_mov_b32 s3, 0xf000
15+
; SI-NEXT: s_mov_b32 s2, -1
16+
; SI-NEXT: s_waitcnt lgkmcnt(0)
17+
; SI-NEXT: v_mov_b32_e32 v0, s4
18+
; SI-NEXT: v_mov_b32_e32 v1, s5
19+
; SI-NEXT: v_mov_b32_e32 v2, s6
20+
; SI-NEXT: v_mov_b32_e32 v3, s7
21+
; SI-NEXT: buffer_store_dwordx4 v[0:3], off, s[0:3], 0
22+
; SI-NEXT: s_endpgm
2323
;
2424
; VI-LABEL: bitcast_i8ptr_v16i8ptr:
2525
; VI: ; %bb.0: ; %entry

0 commit comments

Comments
 (0)