summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MSP430/flt_rounds.ll
blob: fb89363d4d0a94c916984b204b816e8dcf86a001 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc -verify-machineinstrs < %s -march=msp430

define i16 @foo() {
entry:
  %0 = call i32 @llvm.flt.rounds()
  %1 = trunc i32 %0 to i16
  ret i16 %1
}

declare i32 @llvm.flt.rounds() nounwind 
OpenPOWER on IntegriCloud