1 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefixes=CHECK,X86
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=CHECK,X64
4 define i129 @fptosi_float(float %a) nounwind {
5 ; CHECK-LABEL: fptosi_float:
7 %res = fptosi float %a to i129
11 define i129 @fptosi_double(double %a) nounwind {
12 ; CHECK-LABEL: fptosi_double:
14 %res = fptosi double %a to i129
18 define i129 @fptosi_fp128(fp128 %a) nounwind {
19 ; CHECK-LABEL: fptosi_fp128:
21 %res = fptosi fp128 %a to i129
25 define i129 @fptoui_float(float %a) nounwind {
26 ; CHECK-LABEL: fptoui_float:
28 %res = fptoui float %a to i129
32 define i129 @fptoui_double(double %a) nounwind {
33 ; CHECK-LABEL: fptoui_double:
35 %res = fptoui double %a to i129
39 define i129 @fptoui_fp128(fp128 %a) nounwind {
40 ; CHECK-LABEL: fptoui_fp128:
42 %res = fptoui fp128 %a to i129
46 define float @sitofp_float(i129 %a) nounwind {
47 ; CHECK-LABEL: sitofp_float:
49 %res = sitofp i129 %a to float
53 define double @sitofp_double(i129 %a) nounwind {
54 ; CHECK-LABEL: sitofp_double:
56 %res = sitofp i129 %a to double
60 define fp128 @sitofp_fp128(i129 %a) nounwind {
61 ; CHECK-LABEL: sitofp_fp128:
63 %res = sitofp i129 %a to fp128
67 define float @uitofp_float(i129 %a) nounwind {
68 ; CHECK-LABEL: uitofp_float:
70 %res = uitofp i129 %a to float
74 define double @uitofp_double(i129 %a) nounwind {
75 ; CHECK-LABEL: uitofp_double:
77 %res = uitofp i129 %a to double
81 define fp128 @uitofp_fp128(i129 %a) nounwind {
82 ; CHECK-LABEL: uitofp_fp128:
84 %res = uitofp i129 %a to fp128
89 define i257 @fptosi257_double(double %a) nounwind {
90 ; CHECK-LABEL: fptosi257_double:
92 %res = fptosi double %a to i257
97 define i257 @fptosi_half(half %a) nounwind {
98 ; X86-LABEL: fptosi_half:
101 ; X64-LABEL: fptosi_half:
103 %res = fptosi half %a to i257
107 define half @uitofp_half(i257 %a) nounwind {
108 ; X86-LABEL: uitofp_half:
109 ; X86: __gnu_f2h_ieee
111 ; X64-LABEL: uitofp_half:
113 %res = uitofp i257 %a to half
118 define i257 @fptoui_x86_fp80(x86_fp80 %a) nounwind {
119 ; CHECK-LABEL: fptoui_x86_fp80:
120 ; CHECK: __extendxftf2
121 %res = fptoui x86_fp80 %a to i257
125 define x86_fp80 @sitofp_x86_fp80(i257 %a) nounwind {
126 ; CHECK-LABEL: sitofp_x86_fp80:
127 ; CHECK: __trunctfxf2
128 %res = sitofp i257 %a to x86_fp80