Skip to content

Commit a761a05

Browse files
committed
Remove memcpy test on arrays of vectors
1 parent 41ac47e commit a761a05

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

llvm/test/CodeGen/DirectX/legalize-memcpy.ll

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
22
; RUN: opt -S -dxil-legalize -dxil-finalize-linkage -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
33

4-
@outputStrides = external local_unnamed_addr addrspace(2) global [2 x <4 x i32>], align 4
5-
6-
define void @replace_2x4xint_global_memcpy_test() #0 {
7-
; CHECK-LABEL: define void @replace_2x4xint_global_memcpy_test(
8-
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
9-
; CHECK-NEXT: [[TMP1:%.*]] = alloca [2 x <4 x i32>], align 16
10-
; CHECK-NEXT: [[TMP2:%.*]] = load <4 x i32>, ptr addrspace(2) @outputStrides, align 16
11-
; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds <4 x i32>, ptr [[TMP1]], i32 0
12-
; CHECK-NEXT: store <4 x i32> [[TMP2]], ptr [[GEP]], align 16
13-
; CHECK-NEXT: [[TMP3:%.*]] = load <4 x i32>, ptr addrspace(2) getelementptr inbounds (<4 x i32>, ptr addrspace(2) @outputStrides, i32 1), align 16
14-
; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds <4 x i32>, ptr [[TMP1]], i32 1
15-
; CHECK-NEXT: store <4 x i32> [[TMP3]], ptr [[GEP1]], align 16
16-
; CHECK-NEXT: ret void
17-
;
18-
%1 = alloca [2 x <4 x i32>], align 16
19-
call void @llvm.memcpy.p0.p2.i32(ptr nonnull align 16 dereferenceable(32) %1, ptr addrspace(2) align 16 dereferenceable(32) @outputStrides, i32 32, i1 false)
20-
ret void
21-
}
22-
234
define void @replace_int_memcpy_test() #0 {
245
; CHECK-LABEL: define void @replace_int_memcpy_test(
25-
; CHECK-SAME: ) #[[ATTR0]] {
6+
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
267
; CHECK-NEXT: [[TMP1:%.*]] = alloca [1 x i32], align 4
278
; CHECK-NEXT: [[TMP2:%.*]] = alloca [1 x i32], align 4
289
; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds i32, ptr [[TMP1]], i32 0

0 commit comments

Comments
 (0)