forked from OSchip/llvm-project
23 lines
528 B
LLVM
23 lines
528 B
LLVM
|
; 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
|
||
|
}
|