1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i686-- | FileCheck %s 3 4declare i1 @llvm.isunordered.f64(double) 5 6define i1 @test_isnan(double %X) { 7; CHECK-LABEL: test_isnan: 8; CHECK: # %bb.0: 9; CHECK-NEXT: fldl {{[0-9]+}}(%esp) 10; CHECK-NEXT: fucomp %st(0) 11; CHECK-NEXT: fnstsw %ax 12; CHECK-NEXT: # kill: def $ah killed $ah killed $ax 13; CHECK-NEXT: sahf 14; CHECK-NEXT: setp %al 15; CHECK-NEXT: retl 16 %R = fcmp uno double %X, %X ; <i1> [#uses=1] 17 ret i1 %R 18} 19 20