mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
a4a46c15fe
Summary: Two exceptions to this: test/CodeGen/Mips/octeon.ll test/CodeGen/Mips/octeon_popcnt.ll these test extensions to MIPS64 One test is altered for MIPS-IV: test/CodeGen/Mips/mips64countleading.ll Tests dclo/dclz which were added in MIPS64. The MIPS-IV version tests that dclo/dclz are not emitted. Four tests fail and are not in this patch: test/CodeGen/Mips/abicalls.ll test/CodeGen/Mips/fcopysign-f32-f64.ll test/CodeGen/Mips/fcopysign.ll test/CodeGen/Mips/stack-alignment.ll Depends on D3343 Reviewers: matheusalmeida, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D3344 llvm-svn: 206185
34 lines
934 B
LLVM
34 lines
934 B
LLVM
; 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)
|