diff options
Diffstat (limited to 'llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll')
-rw-r--r-- | llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll b/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll new file mode 100644 index 00000000000..bcb350ebb00 --- /dev/null +++ b/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll @@ -0,0 +1,22 @@ +; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" + +; Function Attrs: nounwind +declare i32 @fesetround(i32) + +define void @test_round_change() { +entry: + %call = call i32 @fesetround(i32 2048) + + ret void +} +; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+detectroundchange -o - |& grep "detect rounding changes" + +; Function Attrs: nounwind +declare i32 @fesetround(i32) + +define void @test_round_change() { +entry: + %call = call i32 @fesetround(i32 2048) + + ret void +} |