40 lines · plain
1; RUN: llc < %s -mtriple=ve-unknown-unknown | FileCheck %s2 3; Function Attrs: noinline nounwind optnone4define dso_local i64 @bitcastd2l(double %x) {5; CHECK-LABEL: bitcastd2l:6; CHECK: # %bb.0:7; CHECK-NEXT: b.l.t (, %s10)8 %r = bitcast double %x to i649 ret i64 %r10}11 12; Function Attrs: noinline nounwind optnone13define dso_local double @bitcastl2d(i64 %x) {14; CHECK-LABEL: bitcastl2d:15; CHECK: # %bb.0:16; CHECK-NEXT: b.l.t (, %s10)17 %r = bitcast i64 %x to double18 ret double %r19}20 21; Function Attrs: noinline nounwind optnone22define dso_local float @bitcastw2f(i32 %x) {23; CHECK-LABEL: bitcastw2f:24; CHECK: # %bb.0:25; CHECK-NEXT: sll %s0, %s0, 3226; CHECK-NEXT: b.l.t (, %s10)27 %r = bitcast i32 %x to float28 ret float %r29}30 31; Function Attrs: noinline nounwind optnone32define dso_local i32 @bitcastf2w(float %x) {33; CHECK-LABEL: bitcastf2w:34; CHECK: # %bb.0:35; CHECK-NEXT: sra.l %s0, %s0, 3236; CHECK-NEXT: b.l.t (, %s10)37 %r = bitcast float %x to i3238 ret i32 %r39}40