Jim Grosbach | 394ad59 | 2012-03-01 17:30:32 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=arm-linux-gnueabi %s -o - | FileCheck %s |
James Molloy | f6298e9 | 2012-03-01 14:32:18 +0000 | [diff] [blame] | 2 | |
| 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 | |
| 6 | declare double @log2(double) |
| 7 | declare double @exp2(double) |
| 8 | |
| 9 | define void @f() { |
Chad Rosier | 2913f50 | 2012-03-01 17:41:19 +0000 | [diff] [blame] | 10 | ; CHECK: bl log2 |
James Molloy | f6298e9 | 2012-03-01 14:32:18 +0000 | [diff] [blame] | 11 | %1 = call double @log2(double 0.000000e+00) |
Chad Rosier | 2913f50 | 2012-03-01 17:41:19 +0000 | [diff] [blame] | 12 | ; CHECK: bl exp2 |
James Molloy | f6298e9 | 2012-03-01 14:32:18 +0000 | [diff] [blame] | 13 | %2 = call double @exp2(double 0.000000e+00) |
| 14 | ret void |
| 15 | } |