blob: 05ce02695283ada9b30e50d75a7e85efe0bd9fd3 [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
; RUN: opt -passes=instsimplify -S < %s | FileCheck %s
declare ppc_fp128 @llvm.ldexp.ppcf128.i32(ppc_fp128, i32)
; Positive overflow.
define ppc_fp128 @positive_overflow() {
; CHECK-LABEL: define ppc_fp128 @positive_overflow() {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: ret ppc_fp128 +inf
;
entry:
%r = call ppc_fp128 @llvm.ldexp.ppcf128.i32(
ppc_fp128 f0xC0900000000000007E70000000000000,
i32 100)
ret ppc_fp128 %r
}
; Negative overflow.
define ppc_fp128 @negative_overflow() {
; CHECK-LABEL: define ppc_fp128 @negative_overflow() {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: ret ppc_fp128 -inf
;
entry:
%r = call ppc_fp128 @llvm.ldexp.ppcf128.i32(
ppc_fp128 f0x4090000000000000FE70000000000000,
i32 100)
ret ppc_fp128 %r
}