20 lines
422 B
LLVM
20 lines
422 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
|
|
|
; TODO: these should be poison
|
|
define i1 @poison(float %x) {
|
|
; CHECK-LABEL: @poison(
|
|
; CHECK-NEXT: ret i1 false
|
|
;
|
|
%v = fcmp oeq float %x, poison
|
|
ret i1 %v
|
|
}
|
|
|
|
define i1 @poison2(float %x) {
|
|
; CHECK-LABEL: @poison2(
|
|
; CHECK-NEXT: ret i1 true
|
|
;
|
|
%v = fcmp ueq float %x, poison
|
|
ret i1 %v
|
|
}
|