1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s
4 declare i1 @llvm.isunordered.f64(double)
6 define i1 @test_isnan(double %X) {
7 ; CHECK-LABEL: test_isnan:
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
14 ; CHECK-NEXT: setp %al
16 %R = fcmp uno double %X, %X ; <i1> [#uses=1]