File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+ ; RUN: llc < %s -mcpu=sm_20 | FileCheck %s
3+ ; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 | %ptxas-verify %}
4+
5+ target triple = "nvptx64-nvidia-cuda"
6+
7+ %struct = type { [2 x i64 ] }
8+ @G = external constant %struct
9+
10+ define void @foo () {
11+ ; CHECK-LABEL: foo(
12+ ; CHECK: {
13+ ; CHECK-NEXT: .reg .b64 %rd<3>;
14+ ; CHECK-EMPTY:
15+ ; CHECK-NEXT: // %bb.0:
16+ ; CHECK-NEXT: ld.global.u64 %rd1, [G];
17+ ; CHECK-NEXT: ld.global.u64 %rd2, [G+8];
18+ ; CHECK-NEXT: { // callseq 0, 0
19+ ; CHECK-NEXT: .param .align 8 .b8 param0[16];
20+ ; CHECK-NEXT: st.param.b64 [param0], %rd1;
21+ ; CHECK-NEXT: st.param.b64 [param0+8], %rd2;
22+ ; CHECK-NEXT: call.uni
23+ ; CHECK-NEXT: bar,
24+ ; CHECK-NEXT: (
25+ ; CHECK-NEXT: param0
26+ ; CHECK-NEXT: );
27+ ; CHECK-NEXT: } // callseq 0
28+ ; CHECK-NEXT: ret;
29+ call void @bar (ptr byval (%struct ) @G )
30+ ret void
31+ }
32+
33+ declare void @bar (ptr )
You can’t perform that action at this time.
0 commit comments