summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Main/Ipf/FpuRmode.s
blob: caf4fba207793c5a50b75360ba0ef31902c8c489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
  .globl  internal_FPU_rmode
  .proc internal_FPU_rmode
internal_FPU_rmode::
  // get the floating point rounding control bits
  // bits 10 and 11 are the rc bits from main status field fpsr.sf0
  mov   r8= ar.fpsr;;
  shr   r8 = r8, 10
  mov   r9 = 3;;
  and   r8 = r8, r9;;
  br.sptk.few b0

  .endp internal_FPU_rmode