Skip to content

Commit 9a367ce

Browse files
committed
address comments -- fixup test somewhat
1 parent 7176ce0 commit 9a367ce

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -mcpu=sm_80 -mattr=+ptx73 -debug-only=isel -o /dev/null 2>&1 | FileCheck %s
1+
; RUN: llc < %s -O0 -debug-only=isel -o /dev/null 2>&1 | FileCheck %s
22

33
; REQUIRES: asserts
44

@@ -7,13 +7,17 @@ target triple = "nvptx64-nvidia-cuda"
77
;; Selection DAG CSE is hard to test since we run CSE/GVN on the IR before and
88
;; after selection DAG ISel so most cases will be handled by one of these.
99
define void @foo(ptr %p) {
10-
; CHECK-LABEL: Optimized legalized selection DAG: %bb.0 'foo:'
11-
; CHECK: addrspacecast[0 -> 5]
12-
; CHECK-NOT: addrspacecast[0 -> 5]
13-
; CHECK-LABEL: ===== Instruction selection begins
10+
; CHECK-LABEL: Initial selection DAG
1411
;
15-
%a1 = addrspacecast ptr %p to ptr addrspace(5)
16-
call void @llvm.stackrestore(ptr %p)
17-
store ptr %p, ptr addrspace(5) %a1
18-
ret void
12+
; CHECK: [[ASC:t[0-9]+]]{{.*}} = addrspacecast
13+
; CHECK: store{{.*}} [[ASC]]
14+
; CHECK: store{{.*}} [[ASC]]
15+
;
16+
; CHECK-LABEL: Optimized lowered selection
17+
;
18+
%a1 = addrspacecast ptr %p to ptr addrspace(5)
19+
%a2 = addrspacecast ptr %p to ptr addrspace(5)
20+
store i32 0, ptr addrspace(5) %a1
21+
store i32 0, ptr addrspace(5) %a2
22+
ret void
1923
}

0 commit comments

Comments
 (0)