Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenOpenCL / amdgcn-flat-scratch-name.cl
blob3a98e9099f5220ff2fcf706123a5c0ef74622df5
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
4 // CHECK-LABEL: @use_flat_scratch_name
5 kernel void use_flat_scratch_name()
7 // CHECK: tail call void asm sideeffect "s_mov_b64 flat_scratch, 0", "~{flat_scratch}"()
8 __asm__ volatile("s_mov_b64 flat_scratch, 0" : : : "flat_scratch");
10 // CHECK: tail call void asm sideeffect "s_mov_b32 flat_scratch_lo, 0", "~{flat_scratch_lo}"()
11 __asm__ volatile("s_mov_b32 flat_scratch_lo, 0" : : : "flat_scratch_lo");
13 // CHECK: tail call void asm sideeffect "s_mov_b32 flat_scratch_hi, 0", "~{flat_scratch_hi}"()
14 __asm__ volatile("s_mov_b32 flat_scratch_hi, 0" : : : "flat_scratch_hi");