1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=nvptx64 < %s | FileCheck %s
4 define i64 @test() nounwind readnone {
7 ; CHECK-NEXT: .reg .b64 %rd<4>;
9 ; CHECK-NEXT: // %bb.0:
10 ; CHECK-NEXT: mov.u64 %rd1, 1;
11 ; CHECK-NEXT: mov.u64 %rd2, 42;
12 ; CHECK-NEXT: st.u64 [%rd1], %rd2;
13 ; CHECK-NEXT: ld.global.u64 %rd3, [%rd1];
14 ; CHECK-NEXT: st.param.b64 [func_retval0], %rd3;
16 %addr0 = inttoptr i64 1 to ptr
17 %addr1 = inttoptr i64 1 to ptr addrspace(1)
18 store i64 42, ptr %addr0
19 %res = load i64, ptr addrspace(1) %addr1