1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
|
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -passes=early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
declare double @acos(double) #0
define double @f_acos() {
; CHECK-LABEL: @f_acos(
; CHECK-NEXT: ret double 0.000000e+00
;
%res = tail call fast double @acos(double 1.0)
ret double %res
}
declare float @asinf(float) #0
define float @f_asinf() {
; CHECK-LABEL: @f_asinf(
; CHECK-NEXT: ret float 0x3FF921FB{{.+}}
;
%res = tail call fast float @asinf(float 1.0)
ret float %res
}
declare double @atan(double) #0
define double @f_atan() {
; CHECK-LABEL: @f_atan(
; CHECK-NEXT: ret double 0x3FE921FB
;
%res = tail call fast double @atan(double 1.0)
ret double %res
}
declare float @cosf(float) #0
define float @f_cosf() {
; CHECK-LABEL: @f_cosf(
; CHECK-NEXT: ret float 0x3FE14A2{{.+}}
;
%res = tail call fast float @cosf(float 1.0)
ret float %res
}
declare float @llvm.cos.f32(float)
define float @i_cosf() {
; CHECK-LABEL: @i_cosf(
; CHECK-NEXT: ret float 0x3FE14A2
;
%res = tail call fast float @llvm.cos.f32(float 1.0)
ret float %res
}
declare double @cosh(double) #0
define double @f_cosh() {
; CHECK-LABEL: @f_cosh(
; CHECK-NEXT: ret double 0x3FF8B075{{.+}}
;
%res = tail call fast double @cosh(double 1.0)
ret double %res
}
declare float @expf(float) #0
define float @f_expf() {
; CHECK-LABEL: @f_expf(
; CHECK-NEXT: ret float 0x4005BF0A{{.+}}
;
%res = tail call fast float @expf(float 1.0)
ret float %res
}
declare float @llvm.exp.f32(float)
define float @i_expf() {
; CHECK-LABEL: @i_expf(
; CHECK-NEXT: ret float 0x4005BF0A{{.+}}
;
%res = tail call fast float @llvm.exp.f32(float 1.0)
ret float %res
}
declare double @exp2(double) #0
define double @f_exp2() {
; CHECK-LABEL: @f_exp2(
; CHECK-NEXT: ret double 2.000000e+00
;
%res = tail call fast double @exp2(double 1.0)
ret double %res
}
declare double @llvm.exp2.f64(double)
define double @i_exp2() {
; CHECK-LABEL: @i_exp2(
; CHECK-NEXT: ret double 2.000000e+00
;
%res = tail call fast double @llvm.exp2.f64(double 1.0)
ret double %res
}
; FIXME: exp10() is not widely supported.
declare float @exp10f(float) #0
define float @f_exp10f() {
; CHECK-LABEL: @f_exp10f(
; CHECK-NEXT: [[RES:%.*]] = tail call float @exp10f(float 1.000000e+00)
; CHECK-NEXT: ret float [[RES]]
;
%res = tail call float @exp10f(float 1.0)
ret float %res
}
declare double @log(double) #0
define double @f_log() {
; CHECK-LABEL: @f_log(
; CHECK-NEXT: ret double 0.000000e+00
;
%res = tail call fast double @log(double 1.0)
ret double %res
}
declare double @llvm.log.f64(double)
define double @i_log() {
; CHECK-LABEL: @i_log(
; CHECK-NEXT: ret double 0.000000e+00
;
%res = tail call fast double @llvm.log.f64(double 1.0)
ret double %res
}
declare float @log2f(float) #0
define float @f_log2f() {
; CHECK-LABEL: @f_log2f(
; CHECK-NEXT: ret float 0.000000e+00
;
%res = tail call fast float @log2f(float 1.0)
ret float %res
}
declare float @llvm.log2.f32(float)
define float @i_log2f() {
; CHECK-LABEL: @i_log2f(
; CHECK-NEXT: ret float 0.000000e+00
;
%res = tail call fast float @llvm.log2.f32(float 1.0)
ret float %res
}
declare double @log10(double) #0
define double @f_log10() {
; CHECK-LABEL: @f_log10(
; CHECK-NEXT: ret double 0.000000e+00
;
%res = tail call fast double @log10(double 1.0)
ret double %res
}
declare float @sinf(float) #0
define float @f_sinf() {
; CHECK-LABEL: @f_sinf(
; CHECK-NEXT: ret float 0x3FEAED54{{.+}}
;
%res = tail call fast float @sinf(float 1.0)
ret float %res
}
declare double @sinh(double) #0
define double @f_sinh() {
; CHECK-LABEL: @f_sinh(
; CHECK-NEXT: ret double 0x3FF2CD9F{{.+}}
;
%res = tail call fast double @sinh(double 1.0)
ret double %res
}
declare float @sqrtf(float) #0
define float @f_sqrtf() {
; CHECK-LABEL: @f_sqrtf(
; CHECK-NEXT: ret float 1.000000e+00
;
%res = tail call fast float @sqrtf(float 1.0)
ret float %res
}
declare double @tan(double) #0
define double @f_tan() {
; CHECK-LABEL: @f_tan(
; CHECK-NEXT: ret double 0x3FF8EB24{{.+}}
;
%res = tail call fast double @tan(double 1.0)
ret double %res
}
declare float @tanhf(float) #0
define float @f_tanhf() {
; CHECK-LABEL: @f_tanhf(
; CHECK-NEXT: [[RES:%.*]] = tail call fast float @tanhf(float 1.000000e+00)
; CHECK-NEXT: ret float 0x3FE85EFA{{.+}}
;
%res = tail call fast float @tanhf(float 1.0)
ret float %res
}
attributes #0 = { nofree nounwind willreturn }
|