]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/ARM/log2_not_readnone.ll
Updates to sync with changes in upstream.
[opencl/llvm.git] / test / CodeGen / ARM / log2_not_readnone.ll
1 ; RUN: llc -mtriple=arm-linux-gnueabi %s -o - | FileCheck %s
3 ; Log2 and exp2 are string-matched to intrinsics. If they are not declared
4 ; readnone, they can't be changed to intrinsics (because they can change errno).
6 declare double @log2(double)
7 declare double @exp2(double)
9 define void @f() {
10        ; CHECK: bl log2
11        %1 = call double @log2(double 0.000000e+00)
12        ; CHECK: bl exp2
13        %2 = call double @exp2(double 0.000000e+00)
14        ret void
15 }