Chris Dewhurst | 2c3cdd6 | 2016-10-19 14:01:06 +0000 | [diff] [blame^] | 1 | ; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" |
| 2 | |
| 3 | ; Function Attrs: nounwind |
| 4 | declare i32 @fesetround(i32) |
| 5 | |
| 6 | define void @test_round_change() { |
| 7 | entry: |
| 8 | %call = call i32 @fesetround(i32 2048) |
| 9 | |
| 10 | ret void |
| 11 | } |
| 12 | ; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" |
| 13 | |
| 14 | ; Function Attrs: nounwind |
| 15 | declare i32 @fesetround(i32) |
| 16 | |
| 17 | define void @test_round_change() { |
| 18 | entry: |
| 19 | %call = call i32 @fesetround(i32 2048) |
| 20 | |
| 21 | ret void |
| 22 | } |