Address the inconsistency between FLT_ROUNDS_ and SET_ROUNDING SDAG node. Rename FLT_ROUNDS_ to GET_ROUNDING and add llvm.get.rounding intrinsic to replace flt.rounds. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D139507
11 lines
202 B
LLVM
11 lines
202 B
LLVM
; RUN: llc -verify-machineinstrs < %s -march=msp430
|
|
|
|
define i16 @foo() {
|
|
entry:
|
|
%0 = call i32 @llvm.get.rounding()
|
|
%1 = trunc i32 %0 to i16
|
|
ret i16 %1
|
|
}
|
|
|
|
declare i32 @llvm.get.rounding() nounwind
|