mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
621305e718
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
11 lines
199 B
LLVM
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
|