1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -early-cse -S -o - %s | FileCheck %s
4 declare double @atan2(double, double)
5 define double @f_atan2() {
6 ; CHECK-LABEL: @f_atan2(
7 ; CHECK-NEXT: [[RES:%.*]] = tail call fast double @atan2(double 1.000000e+00, double 2.000000e+00)
8 ; CHECK-NEXT: ret double 0x3FDDAC6{{.+}}
10 %res = tail call fast double @atan2(double 1.0, double 2.0)
14 declare float @fmodf(float, float)
15 define float @f_fmodf() {
16 ; CHECK-LABEL: @f_fmodf(
17 ; CHECK-NEXT: ret float 1.000000e+00
19 %res = tail call fast float @fmodf(float 1.0, float 2.0)
23 declare double @pow(double, double)
24 define double @f_pow() {
25 ; CHECK-LABEL: @f_pow(
26 ; CHECK-NEXT: ret double 1.000000e+00
28 %res = tail call fast double @pow(double 1.0, double 2.0)
32 declare float @llvm.pow.f32(float, float)
33 define float @i_powf() {
34 ; CHECK-LABEL: @i_powf(
35 ; CHECK-NEXT: ret float 1.000000e+00
37 %res = tail call fast float @llvm.pow.f32(float 1.0, float 2.0)
41 declare double @llvm.powi.f64(double, i32)
42 define double @i_powi() {
43 ; CHECK-LABEL: @i_powi(
44 ; CHECK-NEXT: ret double 1.000000e+00
46 %res = tail call fast double @llvm.powi.f64(double 1.0, i32 2)