brintos

brintos / llvm-project-archived public Read only

0
0
Text · 653 B · 2a11278 Raw
26 lines · plain
1; RUN: llc -mtriple=mips-linux-gnu -mattr=-nan2008 < %s | FileCheck %s2; RUN: llc -mtriple=mips-linux-gnu -mattr=+nan2008 < %s | FileCheck %s3 4; Make sure that lowering does not corrupt the value of NaN values,5; regardless of what the NaN mode is.6 7define float @test1() {8; CHECK: .4byte 0x7fc000009  ret float bitcast (i32 u0x7fc00000 to float)10}11 12define float @test2() {13; CHECK: .4byte 0x7fc0000114  ret float bitcast (i32 u0x7fc00001 to float)15}16 17define float @test3() {18; CHECK: .4byte 0x7f80000019  ret float bitcast (i32 u0x7f800000 to float)20}21 22define float @test4() {23; CHECK: .4byte 0x7f80000124  ret float bitcast (i32 u0x7f800001 to float)25}26