Files
clang-p2996/llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll
Jinsong Ji cd9e1a020c [Constants][PowerPC] Check exactlyValue for ppc_fp128 in isNullValue
PPC_FP128 determines isZero/isNan/isInf using high-order double value
 only. Checking isZero/isNegative might return the isNullValue unexpectedly.
 eg:
   0xM0000000000000000FFFFFFFFFFFFFFFFF

isZero, but it is not NullValue.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D103634
2021-06-03 20:31:01 +00:00

16 lines
398 B
LLVM

; RUN: llvm-as < %s -o - | llvm-dis - | FileCheck %s
;CHECK-LABEL: main
;CHECK: store ppc_fp128 0xM0000000000000000FFFFFFFFFFFFFFFF
define i32 @main() local_unnamed_addr {
_main_entry:
%e3 = alloca ppc_fp128, align 16
store ppc_fp128 0xM0000000000000000FFFFFFFFFFFFFFFF, ppc_fp128* %e3, align 16
%0 = call i64 @foo( ppc_fp128* nonnull %e3)
ret i32 undef
}
declare i64 @foo(ppc_fp128 *)