xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2007-09-27-LDIntrinsics.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget 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"
3*9880d681SAndroid Build Coastguard Workertarget triple = "i686-apple-darwin8"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine x86_fp80 @foo(x86_fp80 %x) nounwind{
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker	%tmp2 = call x86_fp80 @llvm.sqrt.f80( x86_fp80 %x )
8*9880d681SAndroid Build Coastguard Worker	ret x86_fp80 %tmp2
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: foo:
11*9880d681SAndroid Build Coastguard Worker; CHECK: fldt 4(%esp)
12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fsqrt
13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerdeclare x86_fp80 @llvm.sqrt.f80(x86_fp80)
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerdefine x86_fp80 @bar(x86_fp80 %x) nounwind {
19*9880d681SAndroid Build Coastguard Workerentry:
20*9880d681SAndroid Build Coastguard Worker	%tmp2 = call x86_fp80 @llvm.powi.f80( x86_fp80 %x, i32 3 )
21*9880d681SAndroid Build Coastguard Worker	ret x86_fp80 %tmp2
22*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: bar:
23*9880d681SAndroid Build Coastguard Worker; CHECK: fldt 4(%esp)
24*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fld	%st(0)
25*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fmul	%st(1)
26*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fmulp
27*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret
28*9880d681SAndroid Build Coastguard Worker}
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Workerdeclare x86_fp80 @llvm.powi.f80(x86_fp80, i32)
31