summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/LeonDetectRoundChangePassUT.ll
blob: bcb350ebb0041500c1aeb591ce55269e71fcfd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}
OpenPOWER on IntegriCloud