mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
81bb5f99ad
The data layout strings do not have any effect on llc tests and will become misleadingly out of date as we continue to update the canonical data layout, so remove them from the tests. Differential Revision: https://reviews.llvm.org/D105842
24 lines
725 B
LLVM
24 lines
725 B
LLVM
; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers | FileCheck %s
|
|
|
|
; Test that the frem instruction works.
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK-LABEL: frem32:
|
|
; CHECK-NEXT: .functype frem32 (f32, f32) -> (f32){{$}}
|
|
; CHECK-NEXT: {{^}} call $push0=, fmodf, $0, $1{{$}}
|
|
; CHECK-NEXT: return $pop0{{$}}
|
|
define float @frem32(float %x, float %y) {
|
|
%a = frem float %x, %y
|
|
ret float %a
|
|
}
|
|
|
|
; CHECK-LABEL: frem64:
|
|
; CHECK-NEXT: .functype frem64 (f64, f64) -> (f64){{$}}
|
|
; CHECK-NEXT: {{^}} call $push0=, fmod, $0, $1{{$}}
|
|
; CHECK-NEXT: return $pop0{{$}}
|
|
define double @frem64(double %x, double %y) {
|
|
%a = frem double %x, %y
|
|
ret double %a
|
|
}
|