blob: 8068abdff908370f482bef97d6458ea484e4a314 [file] [log] [blame]
Jim Grosbach394ad592012-03-01 17:30:32 +00001; RUN: llc -mtriple=arm-linux-gnueabi %s -o - | FileCheck %s
James Molloyf6298e92012-03-01 14:32:18 +00002
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).
5
6declare double @log2(double)
7declare double @exp2(double)
8
9define void @f() {
Chad Rosier2913f502012-03-01 17:41:19 +000010 ; CHECK: bl log2
James Molloyf6298e92012-03-01 14:32:18 +000011 %1 = call double @log2(double 0.000000e+00)
Chad Rosier2913f502012-03-01 17:41:19 +000012 ; CHECK: bl exp2
James Molloyf6298e92012-03-01 14:32:18 +000013 %2 = call double @exp2(double 0.000000e+00)
14 ret void
15}