1 ; RUN: llc < %s -mtriple=ve-unknown-unknown | FileCheck %s
3 ; Function Attrs: noinline nounwind optnone
4 define dso_local i64 @bitcastd2l(double %x) {
5 ; CHECK-LABEL: bitcastd2l:
7 ; CHECK-NEXT: b.l.t (, %s10)
8 %r = bitcast double %x to i64
12 ; Function Attrs: noinline nounwind optnone
13 define dso_local double @bitcastl2d(i64 %x) {
14 ; CHECK-LABEL: bitcastl2d:
16 ; CHECK-NEXT: b.l.t (, %s10)
17 %r = bitcast i64 %x to double
21 ; Function Attrs: noinline nounwind optnone
22 define dso_local float @bitcastw2f(i32 %x) {
23 ; CHECK-LABEL: bitcastw2f:
25 ; CHECK-NEXT: sll %s0, %s0, 32
26 ; CHECK-NEXT: b.l.t (, %s10)
27 %r = bitcast i32 %x to float
31 ; Function Attrs: noinline nounwind optnone
32 define dso_local i32 @bitcastf2w(float %x) {
33 ; CHECK-LABEL: bitcastf2w:
35 ; CHECK-NEXT: sra.l %s0, %s0, 32
36 ; CHECK-NEXT: b.l.t (, %s10)
37 %r = bitcast float %x to i32