1 ; RUN: llc < %s -march=amdgcn -mcpu=gfx908 | FileCheck %s --check-prefixes=GCN,GFX908
2 ; RUN: llc < %s -march=amdgcn -mcpu=gfx90a | FileCheck %s --check-prefixes=GCN,GFX90A
4 ; GCN-LABEL: {{^}}mul_legacy
5 ; GFX908: v_mul_legacy_f32_e32 v{{[0-9]+}}, v{{[0-9]+}}, v{{[0-9]+}}{{$}}
6 ; GFX90A: v_mul_legacy_f32 v{{[0-9]+}}, v{{[0-9]+}}, v{{[0-9]+}}{{$}}
7 define amdgpu_kernel void @mul_legacy(
8 float addrspace(1)* %r,
9 float addrspace(1)* %a,
10 float addrspace(1)* %b) {
12 %a.val = load volatile float, float addrspace(1)* %a
13 %b.val = load volatile float, float addrspace(1)* %b
14 %r.val = call float @llvm.pow.f32(float %a.val, float %b.val)
15 store float %r.val, float addrspace(1)* %r
19 declare float @llvm.pow.f32(float ,float ) readonly