[Clang][AArch64] Remove const from base pointers in sve2p1 stores (#120551)
[llvm-project.git] / clang / test / CodeGenOpenCL / amdgcn-flat-scratch-name.cl
blob40a523f0aa0bfd49db9d72d5eb58c3100774d6aa
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -emit-llvm -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -triple spirv64-amd-amdhsa -emit-llvm -o - %s | FileCheck %s
5 // CHECK-LABEL: @use_flat_scratch_name
6 kernel void use_flat_scratch_name()
8 // CHECK: tail call{{.*}} void asm sideeffect "s_mov_b64 flat_scratch, 0", "~{flat_scratch}"()
9 __asm__ volatile("s_mov_b64 flat_scratch, 0" : : : "flat_scratch");
11 // CHECK: tail call{{.*}} void asm sideeffect "s_mov_b32 flat_scratch_lo, 0", "~{flat_scratch_lo}"()
12 __asm__ volatile("s_mov_b32 flat_scratch_lo, 0" : : : "flat_scratch_lo");
14 // CHECK: tail call{{.*}} void asm sideeffect "s_mov_b32 flat_scratch_hi, 0", "~{flat_scratch_hi}"()
15 __asm__ volatile("s_mov_b32 flat_scratch_hi, 0" : : : "flat_scratch_hi");