1 ; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
2 target triple = "dxil-unknown-shadermodel6.7-library"
4 define i32 @fn(ptr %0) {
5 %2 = getelementptr i32, ptr %0, i32 4
10 ; CHECK: define i32 @fn(i32*)
11 ; CHECK-NEXT: %2 = getelementptr i32, i32* %0, i32 4
12 ; CHECK-NEXT: %3 = load i32, i32* %2, align 4
14 define i32 @fn2(ptr addrspace(1) %0) {
15 %2 = getelementptr i32, ptr addrspace(1) %0, i32 4
16 %3 = load i32, ptr addrspace(1) %2
20 ; CHECK: define i32 @fn2(i32 addrspace(1)*)
21 ; CHECK-NEXT: %2 = getelementptr i32, i32 addrspace(1)* %0, i32 4
22 ; CHECK-NEXT: %3 = load i32, i32 addrspace(1)* %2, align 4