HomePhabricator

CodeGen: Cast llvm.flt.rounds result to match __builtin_flt_rounds

Description

CodeGen: Cast llvm.flt.rounds result to match __builtin_flt_rounds

llvm.flt.rounds returns an i32, but the builtin expects an integer.
On targets where integers are not 32-bits clang tries to bitcast the result, causing an assertion failure.

The patch enables newlib build for msp430.

Patch by Edward Jones!

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

Details

Committed
aslJan 17 2019, 7:21 AM
Differential Revision
D24461: CodeGen: Cast llvm.flt.rounds result to match __builtin_flt_rounds
Branches
Unknown
Tags
Unknown