[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / 2006-05-22-FPSetEQ.ll
1 ; RUN: llc < %s -march=x86 -mattr=-sse | FileCheck %s -check-prefix=WITHNANS
2 ; RUN: llc < %s -march=x86 -mattr=-sse -enable-unsafe-fp-math -enable-no-nans-fp-math | FileCheck %s -check-prefix=NONANS
3
4 ; WITHNANS-LABEL: test:
5 ; WITHNANS: setnp
6 ; NONANS-LABEL: test:
7 ; NONANS-NOT: setnp
8 define i32 @test(float %f) {
9         %tmp = fcmp oeq float %f, 0.000000e+00          ; <i1> [#uses=1]
10         %tmp.upgrd.1 = zext i1 %tmp to i32              ; <i32> [#uses=1]
11         ret i32 %tmp.upgrd.1
12 }
13