1 ; RUN: llc --filetype=asm %s -o - | FileCheck %s
2 target triple = "dxil-unknown-shadermodel6.7-library"
4 define i64 @test(ptr %p) {
9 ; CHECK: define i64 @test(ptr %p) {
10 ; CHECK-NEXT: %v = load i64, ptr %p, align 8
11 ; CHECK-NEXT: ret i64 %v
13 define i64 @test2(ptr %p) {
19 ; CHECK: define i64 @test2(ptr %p) {
20 ; CHECK-NEXT: store i64 0, ptr %p
21 ; CHECK-NEXT: %v = load i64, ptr %p, align 8
22 ; CHECK-NEXT: ret i64 %v
24 define i32 @test3(ptr %0) {
25 %2 = getelementptr i32, ptr %0, i32 4
30 ; CHECK: define i32 @test3(ptr %0) {
31 ; CHECK-NEXT: %2 = getelementptr i32, ptr %0, i32 4
32 ; CHECK-NEXT: %3 = load i32, ptr %2