mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
985d51d2a5
Fixed bugs https://bugs.llvm.org//show_bug.cgi?id=49643, https://bugs.llvm.org//show_bug.cgi?id=49644, https://bugs.llvm.org//show_bug.cgi?id=49645. Differential Revision: https://reviews.llvm.org/D99413
20 lines
763 B
LLVM
20 lines
763 B
LLVM
; RUN: llc < %s -march=amdgcn -mcpu=gfx908 | FileCheck %s --check-prefixes=GCN,GFX908
|
|
; RUN: llc < %s -march=amdgcn -mcpu=gfx90a | FileCheck %s --check-prefixes=GCN,GFX90A
|
|
|
|
; GCN-LABEL: {{^}}mul_legacy
|
|
; GFX908: v_mul_legacy_f32_e32 v{{[0-9]+}}, v{{[0-9]+}}, v{{[0-9]+}}{{$}}
|
|
; GFX90A: v_mul_legacy_f32 v{{[0-9]+}}, v{{[0-9]+}}, v{{[0-9]+}}{{$}}
|
|
define amdgpu_kernel void @mul_legacy(
|
|
float addrspace(1)* %r,
|
|
float addrspace(1)* %a,
|
|
float addrspace(1)* %b) {
|
|
entry:
|
|
%a.val = load volatile float, float addrspace(1)* %a
|
|
%b.val = load volatile float, float addrspace(1)* %b
|
|
%r.val = call float @llvm.pow.f32(float %a.val, float %b.val)
|
|
store float %r.val, float addrspace(1)* %r
|
|
ret void
|
|
}
|
|
|
|
declare float @llvm.pow.f32(float ,float ) readonly
|