summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyLibCalls/pow2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/pow2.ll')
-rw-r--r--test/Transforms/SimplifyLibCalls/pow2.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyLibCalls/pow2.ll b/test/Transforms/SimplifyLibCalls/pow2.ll
index c039d80a2c..a48abbaf1e 100644
--- a/test/Transforms/SimplifyLibCalls/pow2.ll
+++ b/test/Transforms/SimplifyLibCalls/pow2.ll
@@ -30,3 +30,8 @@ define float @test4f(float %X) {
%Y = call float @powf( float %X, float 2.0)
ret float %Y
}
+
+define float @test5f(float %X) {
+ %Y = call float @powf(float 2.0, float %X) ;; exp2
+ ret float %Y
+}