1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instsimplify -S | FileCheck %s
4 define i1 @isnan_01() {
5 ; CHECK-LABEL: @isnan_01(
7 ; CHECK-NEXT: ret i1 true
10 %0 = tail call i1 @llvm.isnan.f32(float 0x7FF8000000000000)
14 define i1 @isnan_02() {
15 ; CHECK-LABEL: @isnan_02(
17 ; CHECK-NEXT: ret i1 false
20 %0 = tail call i1 @llvm.isnan.f32(float 0x7FF0000000000000)
24 define <4 x i1> @isnan_03() {
25 ; CHECK-LABEL: @isnan_03(
27 ; CHECK-NEXT: ret <4 x i1> <i1 true, i1 false, i1 false, i1 true>
30 %0 = tail call <4 x i1> @llvm.isnan.v4f32(<4 x float><float 0x7FF8000000000000, float 0x7FF0000000000000, float 1.0, float 0xFFF8000000000000>)
34 declare i1 @llvm.isnan.f32(float)
35 declare <4 x i1> @llvm.isnan.v4f32(<4 x float>)