NAKAMURA Takumi | 2459204 | 2012-08-14 00:56:06 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=arm-unknown-unknown < %s | FileCheck %s |
Owen Anderson | a40319b | 2012-08-13 23:32:49 +0000 | [diff] [blame] | 2 | |
| 3 | ; CHECK: test1 |
| 4 | define float @test1() nounwind uwtable readnone ssp { |
| 5 | ; CHECK-NOT: floorf |
| 6 | %foo = call float @floorf(float 0x4000CCCCC0000000) nounwind readnone |
| 7 | ret float %foo |
| 8 | } |
| 9 | |
| 10 | ; CHECK: test2 |
| 11 | define float @test2() nounwind uwtable readnone ssp { |
| 12 | ; CHECK-NOT: ceilf |
| 13 | %foo = call float @ceilf(float 0x4000CCCCC0000000) nounwind readnone |
| 14 | ret float %foo |
| 15 | } |
| 16 | |
| 17 | ; CHECK: test3 |
| 18 | define float @test3() nounwind uwtable readnone ssp { |
| 19 | ; CHECK-NOT: truncf |
| 20 | %foo = call float @truncf(float 0x4000CCCCC0000000) nounwind readnone |
| 21 | ret float %foo |
| 22 | } |
| 23 | |
| 24 | declare float @floorf(float) nounwind readnone |
| 25 | declare float @ceilf(float) nounwind readnone |
| 26 | declare float @truncf(float) nounwind readnone |
| 27 | |
| 28 | |
| 29 | |