xref: /llvm-project/llvm/test/Transforms/InstCombine/nanl-fp128.ll (revision 4f42deb5f4fde1676e7cf3ddc54e44e0f4a89760)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3
4@empty = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
5@dec = private unnamed_addr constant [2 x i8] c"1\00", align 1
6@hex = private unnamed_addr constant [4 x i8] c"0xf\00", align 1
7
8define fp128 @nanl_empty() {
9; CHECK-LABEL: define fp128 @nanl_empty() {
10; CHECK-NEXT:    ret fp128 0xL00000000000000007FFF800000000000
11;
12  %res = call fp128 @nanl(ptr @empty)
13  ret fp128 %res
14}
15
16define fp128 @nanl_dec() {
17; CHECK-LABEL: define fp128 @nanl_dec() {
18; CHECK-NEXT:    ret fp128 0xL00000000000000017FFF800000000000
19;
20  %res = call fp128 @nanl(ptr @dec)
21  ret fp128 %res
22}
23
24define fp128 @nanl_hex() {
25; CHECK-LABEL: define fp128 @nanl_hex() {
26; CHECK-NEXT:    ret fp128 0xL000000000000000F7FFF800000000000
27;
28  %res = call fp128 @nanl(ptr @hex)
29  ret fp128 %res
30}
31
32declare fp128 @nanl(ptr)
33