You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
33
external/llvm/test/CodeGen/Mips/optimize-fp-math.ll
vendored
Normal file
33
external/llvm/test/CodeGen/Mips/optimize-fp-math.ll
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
|
||||
; RUN: llc -march=mips64el -mcpu=mips4 < %s | FileCheck %s -check-prefix=64
|
||||
; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=64
|
||||
|
||||
; 32-LABEL: test_sqrtf_float_:
|
||||
; 32: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
|
||||
; 32: c.un.s $f[[R0]], $f[[R0]]
|
||||
; 64-LABEL: test_sqrtf_float_:
|
||||
; 64: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
|
||||
; 64: c.un.s $f[[R0]], $f[[R0]]
|
||||
|
||||
define float @test_sqrtf_float_(float %a) {
|
||||
entry:
|
||||
%call = tail call float @sqrtf(float %a)
|
||||
ret float %call
|
||||
}
|
||||
|
||||
declare float @sqrtf(float)
|
||||
|
||||
; 32-LABEL: test_sqrt_double_:
|
||||
; 32: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
|
||||
; 32: c.un.d $f[[R0]], $f[[R0]]
|
||||
; 64-LABEL: test_sqrt_double_:
|
||||
; 64: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
|
||||
; 64: c.un.d $f[[R0]], $f[[R0]]
|
||||
|
||||
define double @test_sqrt_double_(double %a) {
|
||||
entry:
|
||||
%call = tail call double @sqrt(double %a)
|
||||
ret double %call
|
||||
}
|
||||
|
||||
declare double @sqrt(double)
|
Reference in New Issue
Block a user