xref: /llvm-project/llvm/test/Transforms/InstCombine/nanl-fp80.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 x86_fp80 @nanl_empty() {
9; CHECK-LABEL: define x86_fp80 @nanl_empty() {
10; CHECK-NEXT:    ret x86_fp80 0xK7FFFC000000000000000
11;
12  %res = call x86_fp80 @nanl(ptr @empty)
13  ret x86_fp80 %res
14}
15
16define x86_fp80 @nanl_dec() {
17; CHECK-LABEL: define x86_fp80 @nanl_dec() {
18; CHECK-NEXT:    ret x86_fp80 0xK7FFFC000000000000001
19;
20  %res = call x86_fp80 @nanl(ptr @dec)
21  ret x86_fp80 %res
22}
23
24define x86_fp80 @nanl_hex() {
25; CHECK-LABEL: define x86_fp80 @nanl_hex() {
26; CHECK-NEXT:    ret x86_fp80 0xK7FFFC00000000000000F
27;
28  %res = call x86_fp80 @nanl(ptr @hex)
29  ret x86_fp80 %res
30}
31
32declare x86_fp80 @nanl(ptr)
33