1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 define float @f32(float %a, i32 %b) {
4 ; CHECK: %call = call float @llvm.ldexp.f32.i32(float %a, i32 %b)
5 ; CHECK-NOT: amdgcn.ldexp
6 %call = call float @llvm.amdgcn.ldexp.f32(float %a, i32 %b)
10 define double @f64(double %a, i32 %b) {
11 ; CHECK: %call = call double @llvm.ldexp.f64.i32(double %a, i32 %b)
12 ; CHECK-NOT: amdgcn.ldexp
13 %call = call double @llvm.amdgcn.ldexp.f64(double %a, i32 %b)
17 define half @f16(half %a, i32 %b) {
18 ; CHECK: %call = call half @llvm.ldexp.f16.i32(half %a, i32 %b)
19 ; CHECK-NOT: amdgcn.ldexp
20 %call = call half @llvm.amdgcn.ldexp.f16(half %a, i32 %b)
24 declare half @llvm.amdgcn.ldexp.f16(half, i32)
25 declare float @llvm.amdgcn.ldexp.f32(float, i32)
26 declare double @llvm.amdgcn.ldexp.f64(double, i32)
27 ; CHECK: declare half @llvm.ldexp.f16.i32(half, i32)
28 ; CHECK: declare float @llvm.ldexp.f32.i32(float, i32)
29 ; CHECK: declare double @llvm.ldexp.f64.i32(double, i32)
30 ; CHECK-NOT: amdgcn.ldexp