1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/CodeGen/MSP430/flt_rounds.ll
Hal Finkel 621305e718 [SelectionDAGBuilder] Support llvm.flt.rounds on targets where i32 is not legal
Add integer expansion for FLT_ROUNDS_ for targets where i32 is not a legal
type.

Patch by Edward Jones, thanks!

Differential Revision: https://reviews.llvm.org/D24459

llvm-svn: 283797
2016-10-10 20:45:15 +00:00

11 lines
199 B
LLVM

; 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