brintos

brintos / llvm-project-archived public Read only

0
0
Text · 898 B · ef68c79 Raw
18 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 52// REQUIRES: amdgpu-registered-target3// RUN: %clang_cc1 -triple amdgcn -emit-llvm -o - %s -debug-info-kind=limited | FileCheck %s4 5// CHECK-LABEL: define dso_local void @test_locals(6// CHECK-SAME: ) #[[ATTR0:[0-9]+]] !dbg [[DBG6:![0-9]+]] {7// CHECK-NEXT:  [[ENTRY:.*:]]8// CHECK-NEXT:    [[IMG:%.*]] = alloca ptr, align 32, addrspace(5)9// CHECK-NEXT:    [[IMG_ASCAST:%.*]] = addrspacecast ptr addrspace(5) [[IMG]] to ptr10// CHECK-NEXT:      #dbg_declare(ptr addrspace(5) [[IMG]], [[META11:![0-9]+]], !DIExpression(DW_OP_constu, 1, DW_OP_swap, DW_OP_xderef), [[META14:![0-9]+]])11// CHECK-NEXT:    [[TMP0:%.*]] = load ptr, ptr [[IMG_ASCAST]], align 32, !dbg [[DBG15:![0-9]+]]12// CHECK-NEXT:    ret void, !dbg [[DBG16:![0-9]+]]13//14void test_locals(void) {15  __amdgpu_texture_t img;16  (void)img;17}18