[X86] Preserve fpexcept property when turning strict_fp_extend and strict_fp_round...
authorCraig Topper <craig.topper@gmail.com>
Sat, 11 Jan 2020 05:14:47 +0000 (21:14 -0800)
committerCraig Topper <craig.topper@gmail.com>
Sat, 11 Jan 2020 07:41:06 +0000 (23:41 -0800)
commit5fe5c0a60f9a5f32da4316ba0d1732a1e439703b
treeb4cb3183bad5e68e5f0fa2b7833ab4ee149dad48
parentfcad5b298c7859d7f10908fab7b82983e286bb8d
[X86] Preserve fpexcept property when turning strict_fp_extend and strict_fp_round into stack operations.

We use the stack for X87 fp_round and for moving from SSE f32/f64 to
X87 f64/f80. Or from X87 f64/f80 to SSE f32/f64.

Note for the SSE<->X87 conversions the conversion always happens in the
X87 domain. The load/store ops in the X87 instructions are able
to signal exceptions.
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/lib/Target/X86/X86InstrFPStack.td