Files
clang-p2996/llvm/test/CodeGen/MSP430/flt_rounds.ll
Qiu Chaofan a40ef656d8 [Intrinsic] Rename flt.rounds intrinsic to get.rounding
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
2022-12-19 15:22:39 +08:00

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