You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
509 B
11 lines
509 B
4 months ago
|
; RUN: not --crash llc -global-isel < %s -march=amdgcn -mcpu=gfx908 -verify-machineinstrs 2>&1 | FileCheck %s -check-prefix=GFX908
|
||
|
|
||
|
declare float @llvm.amdgcn.global.atomic.fadd.f32.p1f32.f32(float addrspace(1)* nocapture, float) #0
|
||
|
|
||
|
; GFX908: error: {{.*}} return versions of fp atomics not supported
|
||
|
|
||
|
define float @global_atomic_fadd_f32_rtn(float addrspace(1)* %ptr, float %data) {
|
||
|
%ret = call float @llvm.amdgcn.global.atomic.fadd.f32.p1f32.f32(float addrspace(1)* %ptr, float %data)
|
||
|
ret float %ret
|
||
|
}
|