Add a small missed optimization: turn X == C ? X : Y into X == C ? C : Y. This
[llvm/stm8.git] / test / Feature / fold-fpcast.ll
blobcdf8da69f680e9d3bbd5ad83adb85eeec1461cfc
1 ; RUN: llvm-as < %s | llvm-dis | not grep bitcast
3 define i32 @test1() {
4    ret i32 bitcast(float 0x400D9999A0000000 to i32)
7 define float @test2() {
8   ret float bitcast(i32 17 to float)
11 define i64 @test3() {
12   ret i64 bitcast (double 0x400921FB4D12D84A to i64)
15 define double @test4() {
16   ret double bitcast (i64 42 to double)