| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6 |
| ; RUN: llc < %s -O0 --global-isel -disable-wasm-fallthrough-return-opt -wasm-keep-registers | FileCheck %s |
| |
| target triple = "wasm32-unknown-unknown" |
| |
| define float @fptrunc_f64_to_f32(double %x) { |
| ; CHECK-LABEL: fptrunc_f64_to_f32: |
| ; CHECK: .functype fptrunc_f64_to_f32 (f64) -> (f32) |
| ; CHECK-NEXT: # %bb.0: |
| ; CHECK-NEXT: local.get $push1=, 0 |
| ; CHECK-NEXT: f32.demote_f64 $push0=, $pop1 |
| ; CHECK-NEXT: return $pop0 |
| %a = fptrunc double %x to float |
| ret float %a |
| } |