xref: /llvm-project/llvm/test/Transforms/InstCombine/X86/2009-03-23-i80-fp80.ll (revision acdc419c897f8a9414c7a00c8908ac32312afee2)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
4target triple = "i686-apple-darwin9"
5
6define i80 @from() {
7; CHECK-LABEL: @from(
8; CHECK-NEXT:    ret i80 302245289961712575840256
9;
10  %tmp = bitcast x86_fp80 0xK4000C000000000000000 to i80
11  ret i80 %tmp
12}
13
14define x86_fp80 @to() {
15; CHECK-LABEL: @to(
16; CHECK-NEXT:    ret x86_fp80 0xK40018000000000000000
17;
18  %tmp = bitcast i80 302259125019767858003968 to x86_fp80
19  ret x86_fp80 %tmp
20}
21