summaryrefslogtreecommitdiff
path: root/tests/compiler/cmm/mo_ff_conv.cmm
blob: caef9604115edf2a6fcf42d20acdb83b6e3ffa97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: "$HC" -cpp -dcmm-lint -keep-s-file -c "$1" && cat "${1%%.*}.s" | FileCheck "$1" -check-prefix=CHECK-A64
#include "Cmm.h"
#include "Types.h"

w64 () {
    F64 x;
    F32 y;
    // CHECK-A64: fmov d31, d12
    x = D1;
    // CHECK-A64: fcvt s31, d31
    y = %f2f32(x);
}