1 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
2 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
4 ; Ensure source scheduling is working
6 define void @foo(ptr %a) {
15 %val0 = load i32, ptr %a
16 %ptr1 = getelementptr i32, ptr %a, i32 1
17 %val1 = load i32, ptr %ptr1
18 %ptr2 = getelementptr i32, ptr %a, i32 2
19 %val2 = load i32, ptr %ptr2
20 %ptr3 = getelementptr i32, ptr %a, i32 3
21 %val3 = load i32, ptr %ptr3
23 %t0 = add i32 %val0, %val1
24 %t1 = add i32 %t0, %val2
25 %t2 = add i32 %t1, %val3