You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
56
external/llvm/test/CodeGen/Generic/intrinsics.ll
vendored
56
external/llvm/test/CodeGen/Generic/intrinsics.ll
vendored
@ -1,56 +0,0 @@
|
||||
; RUN: llc < %s
|
||||
; RUN: llc -O0 < %s
|
||||
|
||||
;; SQRT
|
||||
declare float @llvm.sqrt.f32(float)
|
||||
|
||||
declare double @llvm.sqrt.f64(double)
|
||||
|
||||
define double @test_sqrt(float %F) {
|
||||
%G = call float @llvm.sqrt.f32( float %F ) ; <float> [#uses=1]
|
||||
%H = fpext float %G to double ; <double> [#uses=1]
|
||||
%I = call double @llvm.sqrt.f64( double %H ) ; <double> [#uses=1]
|
||||
ret double %I
|
||||
}
|
||||
|
||||
|
||||
; SIN
|
||||
declare float @sinf(float) readonly
|
||||
|
||||
declare double @sin(double) readonly
|
||||
|
||||
define double @test_sin(float %F) {
|
||||
%G = call float @sinf( float %F ) ; <float> [#uses=1]
|
||||
%H = fpext float %G to double ; <double> [#uses=1]
|
||||
%I = call double @sin( double %H ) ; <double> [#uses=1]
|
||||
ret double %I
|
||||
}
|
||||
|
||||
|
||||
; COS
|
||||
declare float @cosf(float) readonly
|
||||
|
||||
declare double @cos(double) readonly
|
||||
|
||||
define double @test_cos(float %F) {
|
||||
%G = call float @cosf( float %F ) ; <float> [#uses=1]
|
||||
%H = fpext float %G to double ; <double> [#uses=1]
|
||||
%I = call double @cos( double %H ) ; <double> [#uses=1]
|
||||
ret double %I
|
||||
}
|
||||
|
||||
declare i8* @llvm.invariant.group.barrier(i8*)
|
||||
|
||||
define i8* @barrier(i8* %p) {
|
||||
%q = call i8* @llvm.invariant.group.barrier(i8* %p)
|
||||
ret i8* %q
|
||||
}
|
||||
|
||||
; sideeffect
|
||||
|
||||
declare void @llvm.sideeffect()
|
||||
|
||||
define void @test_sideeffect() {
|
||||
call void @llvm.sideeffect()
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user