; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZHINX32 %s
; RUN: llc -mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZHINX64 %s
; RUN: llc -mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZFINX32 %s
; RUN: llc -mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZFINX64 %s
; RUN: llc -mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZDINX32 %s
; RUN: llc -mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs < %s \
; RUN: | FileCheck -check-prefix=ZDINX64 %s
define half @caller_half(half %x) nounwind {
; ZHINX32-LABEL: caller_half:
; ZHINX32: # %bb.0: # %entry
; ZHINX32-NEXT: tail h
;
; ZHINX64-LABEL: caller_half:
; ZHINX64: # %bb.0: # %entry
; ZHINX64-NEXT: tail h
;
; ZFINX32-LABEL: caller_half:
; ZFINX32: # %bb.0: # %entry
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX32-NEXT: lui a1, 1048560
; ZFINX32-NEXT: or a0, a0, a1
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX32-NEXT: tail h
;
; ZFINX64-LABEL: caller_half:
; ZFINX64: # %bb.0: # %entry
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX64-NEXT: lui a1, 1048560
; ZFINX64-NEXT: or a0, a0, a1
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX64-NEXT: tail h
;
; ZDINX32-LABEL: caller_half:
; ZDINX32: # %bb.0: # %entry
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX32-NEXT: lui a1, 1048560
; ZDINX32-NEXT: or a0, a0, a1
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX32-NEXT: tail h
;
; ZDINX64-LABEL: caller_half:
; ZDINX64: # %bb.0: # %entry
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX64-NEXT: lui a1, 1048560
; ZDINX64-NEXT: or a0, a0, a1
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX64-NEXT: tail h
entry:
%0 = tail call fastcc half @h(half %x)
ret half %0
}
define internal fastcc half @h(half %x) nounwind {
; ZHINX32-LABEL: h:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: h:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: h:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX32-NEXT: lui a1, 1048560
; ZFINX32-NEXT: or a0, a0, a1
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: h:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX64-NEXT: lui a1, 1048560
; ZFINX64-NEXT: or a0, a0, a1
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: h:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX32-NEXT: lui a1, 1048560
; ZDINX32-NEXT: or a0, a0, a1
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: h:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX64-NEXT: lui a1, 1048560
; ZDINX64-NEXT: or a0, a0, a1
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX64-NEXT: ret
ret half %x
}
define float @caller_float(float %x) nounwind {
; ZHINX32-LABEL: caller_float:
; ZHINX32: # %bb.0: # %entry
; ZHINX32-NEXT: tail f
;
; ZHINX64-LABEL: caller_float:
; ZHINX64: # %bb.0: # %entry
; ZHINX64-NEXT: tail f
;
; ZFINX32-LABEL: caller_float:
; ZFINX32: # %bb.0: # %entry
; ZFINX32-NEXT: tail f
;
; ZFINX64-LABEL: caller_float:
; ZFINX64: # %bb.0: # %entry
; ZFINX64-NEXT: tail f
;
; ZDINX32-LABEL: caller_float:
; ZDINX32: # %bb.0: # %entry
; ZDINX32-NEXT: tail f
;
; ZDINX64-LABEL: caller_float:
; ZDINX64: # %bb.0: # %entry
; ZDINX64-NEXT: tail f
entry:
%0 = tail call fastcc float @f(float %x)
ret float %0
}
define internal fastcc float @f(float %x) nounwind {
; ZHINX32-LABEL: f:
; ZHINX32: # %bb.0: # %entry
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: f:
; ZHINX64: # %bb.0: # %entry
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: f:
; ZFINX32: # %bb.0: # %entry
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: f:
; ZFINX64: # %bb.0: # %entry
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: f:
; ZDINX32: # %bb.0: # %entry
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: f:
; ZDINX64: # %bb.0: # %entry
; ZDINX64-NEXT: ret
entry:
ret float %x
}
define double @caller_double(double %x) nounwind {
; ZHINX32-LABEL: caller_double:
; ZHINX32: # %bb.0: # %entry
; ZHINX32-NEXT: tail d
;
; ZHINX64-LABEL: caller_double:
; ZHINX64: # %bb.0: # %entry
; ZHINX64-NEXT: tail d
;
; ZFINX32-LABEL: caller_double:
; ZFINX32: # %bb.0: # %entry
; ZFINX32-NEXT: tail d
;
; ZFINX64-LABEL: caller_double:
; ZFINX64: # %bb.0: # %entry
; ZFINX64-NEXT: tail d
;
; ZDINX32-LABEL: caller_double:
; ZDINX32: # %bb.0: # %entry
; ZDINX32-NEXT: addi sp, sp, -16
; ZDINX32-NEXT: sw ra, 12(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw a0, 0(sp)
; ZDINX32-NEXT: sw a1, 4(sp)
; ZDINX32-NEXT: call d
; ZDINX32-NEXT: lw ra, 12(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: addi sp, sp, 16
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: caller_double:
; ZDINX64: # %bb.0: # %entry
; ZDINX64-NEXT: tail d
entry:
%0 = tail call fastcc double @d(double %x)
ret double %0
}
define internal fastcc double @d(double %x) nounwind {
; ZHINX32-LABEL: d:
; ZHINX32: # %bb.0: # %entry
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: d:
; ZHINX64: # %bb.0: # %entry
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: d:
; ZFINX32: # %bb.0: # %entry
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: d:
; ZFINX64: # %bb.0: # %entry
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: d:
; ZDINX32: # %bb.0: # %entry
; ZDINX32-NEXT: lw a0, 0(sp)
; ZDINX32-NEXT: lw a1, 4(sp)
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: d:
; ZDINX64: # %bb.0: # %entry
; ZDINX64-NEXT: ret
entry:
ret double %x
}
define fastcc half @callee_half_32(<32 x half> %A) nounwind {
; ZHINX32-LABEL: callee_half_32:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: callee_half_32:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: callee_half_32:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: lui a1, 1048560
; ZFINX32-NEXT: or a0, a0, a1
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: callee_half_32:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: lui a1, 1048560
; ZFINX64-NEXT: or a0, a0, a1
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: callee_half_32:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: lui a1, 1048560
; ZDINX32-NEXT: or a0, a0, a1
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: callee_half_32:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: lui a1, 1048560
; ZDINX64-NEXT: or a0, a0, a1
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX64-NEXT: ret
%B = extractelement <32 x half> %A, i32 0
ret half %B
}
define half @caller_half_32(<32 x half> %A) nounwind {
; ZHINX32-LABEL: caller_half_32:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: addi sp, sp, -112
; ZHINX32-NEXT: sw ra, 108(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s0, 104(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s1, 100(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s2, 96(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s3, 92(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s4, 88(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s5, 84(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s6, 80(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s7, 76(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s8, 72(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s9, 68(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s10, 64(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s11, 60(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lh t0, 112(sp)
; ZHINX32-NEXT: sh t0, 58(sp) # 2-byte Folded Spill
; ZHINX32-NEXT: lh t0, 116(sp)
; ZHINX32-NEXT: sh t0, 56(sp) # 2-byte Folded Spill
; ZHINX32-NEXT: lh t0, 120(sp)
; ZHINX32-NEXT: sh t0, 54(sp) # 2-byte Folded Spill
; ZHINX32-NEXT: lh t0, 124(sp)
; ZHINX32-NEXT: sh t0, 52(sp) # 2-byte Folded Spill
; ZHINX32-NEXT: lh t6, 128(sp)
; ZHINX32-NEXT: lh t5, 132(sp)
; ZHINX32-NEXT: lh t4, 136(sp)
; ZHINX32-NEXT: lh s0, 140(sp)
; ZHINX32-NEXT: lh s1, 144(sp)
; ZHINX32-NEXT: lh s2, 148(sp)
; ZHINX32-NEXT: lh s3, 152(sp)
; ZHINX32-NEXT: lh s4, 156(sp)
; ZHINX32-NEXT: lh s5, 160(sp)
; ZHINX32-NEXT: lh s6, 164(sp)
; ZHINX32-NEXT: lh s7, 168(sp)
; ZHINX32-NEXT: lh s8, 172(sp)
; ZHINX32-NEXT: lh s9, 176(sp)
; ZHINX32-NEXT: lh s10, 180(sp)
; ZHINX32-NEXT: lh s11, 184(sp)
; ZHINX32-NEXT: lh ra, 188(sp)
; ZHINX32-NEXT: lh t3, 192(sp)
; ZHINX32-NEXT: lh t2, 196(sp)
; ZHINX32-NEXT: lh t1, 200(sp)
; ZHINX32-NEXT: lh t0, 204(sp)
; ZHINX32-NEXT: sh t0, 38(sp)
; ZHINX32-NEXT: sh t1, 36(sp)
; ZHINX32-NEXT: sh t2, 34(sp)
; ZHINX32-NEXT: sh t3, 32(sp)
; ZHINX32-NEXT: sh ra, 30(sp)
; ZHINX32-NEXT: sh s11, 28(sp)
; ZHINX32-NEXT: sh s10, 26(sp)
; ZHINX32-NEXT: sh s9, 24(sp)
; ZHINX32-NEXT: sh s8, 22(sp)
; ZHINX32-NEXT: sh s7, 20(sp)
; ZHINX32-NEXT: sh s6, 18(sp)
; ZHINX32-NEXT: sh s5, 16(sp)
; ZHINX32-NEXT: sh s4, 14(sp)
; ZHINX32-NEXT: sh s3, 12(sp)
; ZHINX32-NEXT: sh s2, 10(sp)
; ZHINX32-NEXT: sh s1, 8(sp)
; ZHINX32-NEXT: sh s0, 6(sp)
; ZHINX32-NEXT: sh t4, 4(sp)
; ZHINX32-NEXT: sh t5, 2(sp)
; ZHINX32-NEXT: sh t6, 0(sp)
; ZHINX32-NEXT: lh t3, 58(sp) # 2-byte Folded Reload
; ZHINX32-NEXT: lh t4, 56(sp) # 2-byte Folded Reload
; ZHINX32-NEXT: lh t5, 54(sp) # 2-byte Folded Reload
; ZHINX32-NEXT: lh t6, 52(sp) # 2-byte Folded Reload
; ZHINX32-NEXT: call callee_half_32
; ZHINX32-NEXT: lw ra, 108(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s0, 104(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s1, 100(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s2, 96(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s3, 92(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s4, 88(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s5, 84(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s6, 80(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s7, 76(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s8, 72(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s9, 68(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s10, 64(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s11, 60(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: addi sp, sp, 112
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: caller_half_32:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: addi sp, sp, -160
; ZHINX64-NEXT: sd ra, 152(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s0, 144(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s1, 136(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s2, 128(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s3, 120(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s4, 112(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s5, 104(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s6, 96(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s7, 88(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s8, 80(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s9, 72(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s10, 64(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s11, 56(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: lh t0, 160(sp)
; ZHINX64-NEXT: sh t0, 54(sp) # 2-byte Folded Spill
; ZHINX64-NEXT: lh t0, 168(sp)
; ZHINX64-NEXT: sh t0, 52(sp) # 2-byte Folded Spill
; ZHINX64-NEXT: lh t0, 176(sp)
; ZHINX64-NEXT: sh t0, 50(sp) # 2-byte Folded Spill
; ZHINX64-NEXT: lh t0, 184(sp)
; ZHINX64-NEXT: sh t0, 48(sp) # 2-byte Folded Spill
; ZHINX64-NEXT: lh t6, 192(sp)
; ZHINX64-NEXT: lh t5, 200(sp)
; ZHINX64-NEXT: lh t4, 208(sp)
; ZHINX64-NEXT: lh s0, 216(sp)
; ZHINX64-NEXT: lh s1, 224(sp)
; ZHINX64-NEXT: lh s2, 232(sp)
; ZHINX64-NEXT: lh s3, 240(sp)
; ZHINX64-NEXT: lh s4, 248(sp)
; ZHINX64-NEXT: lh s5, 256(sp)
; ZHINX64-NEXT: lh s6, 264(sp)
; ZHINX64-NEXT: lh s7, 272(sp)
; ZHINX64-NEXT: lh s8, 280(sp)
; ZHINX64-NEXT: lh s9, 288(sp)
; ZHINX64-NEXT: lh s10, 296(sp)
; ZHINX64-NEXT: lh s11, 304(sp)
; ZHINX64-NEXT: lh ra, 312(sp)
; ZHINX64-NEXT: lh t3, 320(sp)
; ZHINX64-NEXT: lh t2, 328(sp)
; ZHINX64-NEXT: lh t1, 336(sp)
; ZHINX64-NEXT: lh t0, 344(sp)
; ZHINX64-NEXT: sh t0, 38(sp)
; ZHINX64-NEXT: sh t1, 36(sp)
; ZHINX64-NEXT: sh t2, 34(sp)
; ZHINX64-NEXT: sh t3, 32(sp)
; ZHINX64-NEXT: sh ra, 30(sp)
; ZHINX64-NEXT: sh s11, 28(sp)
; ZHINX64-NEXT: sh s10, 26(sp)
; ZHINX64-NEXT: sh s9, 24(sp)
; ZHINX64-NEXT: sh s8, 22(sp)
; ZHINX64-NEXT: sh s7, 20(sp)
; ZHINX64-NEXT: sh s6, 18(sp)
; ZHINX64-NEXT: sh s5, 16(sp)
; ZHINX64-NEXT: sh s4, 14(sp)
; ZHINX64-NEXT: sh s3, 12(sp)
; ZHINX64-NEXT: sh s2, 10(sp)
; ZHINX64-NEXT: sh s1, 8(sp)
; ZHINX64-NEXT: sh s0, 6(sp)
; ZHINX64-NEXT: sh t4, 4(sp)
; ZHINX64-NEXT: sh t5, 2(sp)
; ZHINX64-NEXT: sh t6, 0(sp)
; ZHINX64-NEXT: lh t3, 54(sp) # 2-byte Folded Reload
; ZHINX64-NEXT: lh t4, 52(sp) # 2-byte Folded Reload
; ZHINX64-NEXT: lh t5, 50(sp) # 2-byte Folded Reload
; ZHINX64-NEXT: lh t6, 48(sp) # 2-byte Folded Reload
; ZHINX64-NEXT: call callee_half_32
; ZHINX64-NEXT: ld ra, 152(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s0, 144(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s1, 136(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s2, 128(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s3, 120(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s4, 112(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s5, 104(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s6, 96(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s7, 88(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s8, 80(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s9, 72(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s10, 64(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s11, 56(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: addi sp, sp, 160
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: caller_half_32:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: addi sp, sp, -160
; ZFINX32-NEXT: sw ra, 156(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s0, 152(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s1, 148(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s2, 144(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s3, 140(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s4, 136(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s5, 132(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s6, 128(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s7, 124(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s8, 120(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s9, 116(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s10, 112(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s11, 108(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t0, 0(a0)
; ZFINX32-NEXT: lw a1, 4(a0)
; ZFINX32-NEXT: sw a1, 104(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw a1, 8(a0)
; ZFINX32-NEXT: sw a1, 100(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw a1, 12(a0)
; ZFINX32-NEXT: sw a1, 96(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw a1, 16(a0)
; ZFINX32-NEXT: sw a1, 92(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw a5, 20(a0)
; ZFINX32-NEXT: lw a6, 24(a0)
; ZFINX32-NEXT: lw a7, 28(a0)
; ZFINX32-NEXT: lw t3, 32(a0)
; ZFINX32-NEXT: lw t4, 36(a0)
; ZFINX32-NEXT: lw t5, 40(a0)
; ZFINX32-NEXT: lw t6, 44(a0)
; ZFINX32-NEXT: lw t1, 48(a0)
; ZFINX32-NEXT: lw t2, 52(a0)
; ZFINX32-NEXT: lw s0, 56(a0)
; ZFINX32-NEXT: lw s1, 60(a0)
; ZFINX32-NEXT: lw s2, 64(a0)
; ZFINX32-NEXT: lw s3, 68(a0)
; ZFINX32-NEXT: lw s4, 72(a0)
; ZFINX32-NEXT: lw s5, 76(a0)
; ZFINX32-NEXT: lw s6, 80(a0)
; ZFINX32-NEXT: lw s7, 84(a0)
; ZFINX32-NEXT: lw s8, 88(a0)
; ZFINX32-NEXT: lw s9, 92(a0)
; ZFINX32-NEXT: lw s10, 96(a0)
; ZFINX32-NEXT: lw s11, 100(a0)
; ZFINX32-NEXT: lw ra, 104(a0)
; ZFINX32-NEXT: lw a4, 108(a0)
; ZFINX32-NEXT: lw a3, 112(a0)
; ZFINX32-NEXT: lw a2, 116(a0)
; ZFINX32-NEXT: lw a1, 120(a0)
; ZFINX32-NEXT: lw a0, 124(a0)
; ZFINX32-NEXT: sw a0, 76(sp)
; ZFINX32-NEXT: sw a1, 72(sp)
; ZFINX32-NEXT: sw a2, 68(sp)
; ZFINX32-NEXT: sw a3, 64(sp)
; ZFINX32-NEXT: sw a4, 60(sp)
; ZFINX32-NEXT: sw ra, 56(sp)
; ZFINX32-NEXT: sw s11, 52(sp)
; ZFINX32-NEXT: sw s10, 48(sp)
; ZFINX32-NEXT: sw s9, 44(sp)
; ZFINX32-NEXT: sw s8, 40(sp)
; ZFINX32-NEXT: sw s7, 36(sp)
; ZFINX32-NEXT: sw s6, 32(sp)
; ZFINX32-NEXT: sw s5, 28(sp)
; ZFINX32-NEXT: sw s4, 24(sp)
; ZFINX32-NEXT: sw s3, 20(sp)
; ZFINX32-NEXT: sw s2, 16(sp)
; ZFINX32-NEXT: sw s1, 12(sp)
; ZFINX32-NEXT: sw s0, 8(sp)
; ZFINX32-NEXT: sw t2, 4(sp)
; ZFINX32-NEXT: sw t1, 0(sp)
; ZFINX32-NEXT: mv a0, t0
; ZFINX32-NEXT: lw a1, 104(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw a2, 100(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw a3, 96(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw a4, 92(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: call callee_half_32
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX32-NEXT: lui a1, 1048560
; ZFINX32-NEXT: or a0, a0, a1
; ZFINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX32-NEXT: lw ra, 156(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s0, 152(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s1, 148(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s2, 144(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s3, 140(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s4, 136(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s5, 132(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s6, 128(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s7, 124(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s8, 120(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s9, 116(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s10, 112(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s11, 108(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: addi sp, sp, 160
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: caller_half_32:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: addi sp, sp, -304
; ZFINX64-NEXT: sd ra, 296(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s0, 288(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s1, 280(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s2, 272(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s3, 264(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s4, 256(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s5, 248(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s6, 240(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s7, 232(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s8, 224(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s9, 216(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s10, 208(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s11, 200(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: ld t0, 0(a0)
; ZFINX64-NEXT: ld a1, 8(a0)
; ZFINX64-NEXT: sd a1, 192(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: ld a1, 16(a0)
; ZFINX64-NEXT: sd a1, 184(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: ld a1, 24(a0)
; ZFINX64-NEXT: sd a1, 176(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: ld a1, 32(a0)
; ZFINX64-NEXT: sd a1, 168(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: ld a5, 40(a0)
; ZFINX64-NEXT: ld a6, 48(a0)
; ZFINX64-NEXT: ld a7, 56(a0)
; ZFINX64-NEXT: ld t3, 64(a0)
; ZFINX64-NEXT: ld t4, 72(a0)
; ZFINX64-NEXT: ld t5, 80(a0)
; ZFINX64-NEXT: ld t6, 88(a0)
; ZFINX64-NEXT: ld t1, 96(a0)
; ZFINX64-NEXT: ld t2, 104(a0)
; ZFINX64-NEXT: ld s0, 112(a0)
; ZFINX64-NEXT: ld s1, 120(a0)
; ZFINX64-NEXT: ld s2, 128(a0)
; ZFINX64-NEXT: ld s3, 136(a0)
; ZFINX64-NEXT: ld s4, 144(a0)
; ZFINX64-NEXT: ld s5, 152(a0)
; ZFINX64-NEXT: ld s6, 160(a0)
; ZFINX64-NEXT: ld s7, 168(a0)
; ZFINX64-NEXT: ld s8, 176(a0)
; ZFINX64-NEXT: ld s9, 184(a0)
; ZFINX64-NEXT: ld s10, 192(a0)
; ZFINX64-NEXT: ld s11, 200(a0)
; ZFINX64-NEXT: ld ra, 208(a0)
; ZFINX64-NEXT: ld a4, 216(a0)
; ZFINX64-NEXT: ld a3, 224(a0)
; ZFINX64-NEXT: ld a2, 232(a0)
; ZFINX64-NEXT: ld a1, 240(a0)
; ZFINX64-NEXT: ld a0, 248(a0)
; ZFINX64-NEXT: sd a0, 152(sp)
; ZFINX64-NEXT: sd a1, 144(sp)
; ZFINX64-NEXT: sd a2, 136(sp)
; ZFINX64-NEXT: sd a3, 128(sp)
; ZFINX64-NEXT: sd a4, 120(sp)
; ZFINX64-NEXT: sd ra, 112(sp)
; ZFINX64-NEXT: sd s11, 104(sp)
; ZFINX64-NEXT: sd s10, 96(sp)
; ZFINX64-NEXT: sd s9, 88(sp)
; ZFINX64-NEXT: sd s8, 80(sp)
; ZFINX64-NEXT: sd s7, 72(sp)
; ZFINX64-NEXT: sd s6, 64(sp)
; ZFINX64-NEXT: sd s5, 56(sp)
; ZFINX64-NEXT: sd s4, 48(sp)
; ZFINX64-NEXT: sd s3, 40(sp)
; ZFINX64-NEXT: sd s2, 32(sp)
; ZFINX64-NEXT: sd s1, 24(sp)
; ZFINX64-NEXT: sd s0, 16(sp)
; ZFINX64-NEXT: sd t2, 8(sp)
; ZFINX64-NEXT: sd t1, 0(sp)
; ZFINX64-NEXT: mv a0, t0
; ZFINX64-NEXT: ld a1, 192(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld a2, 184(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld a3, 176(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld a4, 168(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: call callee_half_32
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZFINX64-NEXT: lui a1, 1048560
; ZFINX64-NEXT: or a0, a0, a1
; ZFINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZFINX64-NEXT: ld ra, 296(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s0, 288(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s1, 280(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s2, 272(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s3, 264(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s4, 256(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s5, 248(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s6, 240(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s7, 232(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s8, 224(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s9, 216(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s10, 208(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s11, 200(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: addi sp, sp, 304
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: caller_half_32:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: addi sp, sp, -160
; ZDINX32-NEXT: sw ra, 156(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s0, 152(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s1, 148(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s2, 144(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s3, 140(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s4, 136(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s5, 132(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s6, 128(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s7, 124(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s8, 120(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s9, 116(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s10, 112(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s11, 108(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t0, 0(a0)
; ZDINX32-NEXT: lw a1, 4(a0)
; ZDINX32-NEXT: sw a1, 104(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw a1, 8(a0)
; ZDINX32-NEXT: sw a1, 100(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw a1, 12(a0)
; ZDINX32-NEXT: sw a1, 96(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw a1, 16(a0)
; ZDINX32-NEXT: sw a1, 92(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw a5, 20(a0)
; ZDINX32-NEXT: lw a6, 24(a0)
; ZDINX32-NEXT: lw a7, 28(a0)
; ZDINX32-NEXT: lw t3, 32(a0)
; ZDINX32-NEXT: lw t4, 36(a0)
; ZDINX32-NEXT: lw t5, 40(a0)
; ZDINX32-NEXT: lw t6, 44(a0)
; ZDINX32-NEXT: lw t1, 48(a0)
; ZDINX32-NEXT: lw t2, 52(a0)
; ZDINX32-NEXT: lw s0, 56(a0)
; ZDINX32-NEXT: lw s1, 60(a0)
; ZDINX32-NEXT: lw s2, 64(a0)
; ZDINX32-NEXT: lw s3, 68(a0)
; ZDINX32-NEXT: lw s4, 72(a0)
; ZDINX32-NEXT: lw s5, 76(a0)
; ZDINX32-NEXT: lw s6, 80(a0)
; ZDINX32-NEXT: lw s7, 84(a0)
; ZDINX32-NEXT: lw s8, 88(a0)
; ZDINX32-NEXT: lw s9, 92(a0)
; ZDINX32-NEXT: lw s10, 96(a0)
; ZDINX32-NEXT: lw s11, 100(a0)
; ZDINX32-NEXT: lw ra, 104(a0)
; ZDINX32-NEXT: lw a4, 108(a0)
; ZDINX32-NEXT: lw a3, 112(a0)
; ZDINX32-NEXT: lw a2, 116(a0)
; ZDINX32-NEXT: lw a1, 120(a0)
; ZDINX32-NEXT: lw a0, 124(a0)
; ZDINX32-NEXT: sw a0, 76(sp)
; ZDINX32-NEXT: sw a1, 72(sp)
; ZDINX32-NEXT: sw a2, 68(sp)
; ZDINX32-NEXT: sw a3, 64(sp)
; ZDINX32-NEXT: sw a4, 60(sp)
; ZDINX32-NEXT: sw ra, 56(sp)
; ZDINX32-NEXT: sw s11, 52(sp)
; ZDINX32-NEXT: sw s10, 48(sp)
; ZDINX32-NEXT: sw s9, 44(sp)
; ZDINX32-NEXT: sw s8, 40(sp)
; ZDINX32-NEXT: sw s7, 36(sp)
; ZDINX32-NEXT: sw s6, 32(sp)
; ZDINX32-NEXT: sw s5, 28(sp)
; ZDINX32-NEXT: sw s4, 24(sp)
; ZDINX32-NEXT: sw s3, 20(sp)
; ZDINX32-NEXT: sw s2, 16(sp)
; ZDINX32-NEXT: sw s1, 12(sp)
; ZDINX32-NEXT: sw s0, 8(sp)
; ZDINX32-NEXT: sw t2, 4(sp)
; ZDINX32-NEXT: sw t1, 0(sp)
; ZDINX32-NEXT: mv a0, t0
; ZDINX32-NEXT: lw a1, 104(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw a2, 100(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw a3, 96(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw a4, 92(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: call callee_half_32
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX32-NEXT: lui a1, 1048560
; ZDINX32-NEXT: or a0, a0, a1
; ZDINX32-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX32-NEXT: lw ra, 156(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s0, 152(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s1, 148(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s2, 144(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s3, 140(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s4, 136(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s5, 132(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s6, 128(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s7, 124(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s8, 120(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s9, 116(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s10, 112(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s11, 108(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: addi sp, sp, 160
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: caller_half_32:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: addi sp, sp, -304
; ZDINX64-NEXT: sd ra, 296(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s0, 288(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s1, 280(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s2, 272(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s3, 264(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s4, 256(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s5, 248(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s6, 240(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s7, 232(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s8, 224(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s9, 216(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s10, 208(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s11, 200(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: ld t0, 0(a0)
; ZDINX64-NEXT: ld a1, 8(a0)
; ZDINX64-NEXT: sd a1, 192(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: ld a1, 16(a0)
; ZDINX64-NEXT: sd a1, 184(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: ld a1, 24(a0)
; ZDINX64-NEXT: sd a1, 176(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: ld a1, 32(a0)
; ZDINX64-NEXT: sd a1, 168(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: ld a5, 40(a0)
; ZDINX64-NEXT: ld a6, 48(a0)
; ZDINX64-NEXT: ld a7, 56(a0)
; ZDINX64-NEXT: ld t3, 64(a0)
; ZDINX64-NEXT: ld t4, 72(a0)
; ZDINX64-NEXT: ld t5, 80(a0)
; ZDINX64-NEXT: ld t6, 88(a0)
; ZDINX64-NEXT: ld t1, 96(a0)
; ZDINX64-NEXT: ld t2, 104(a0)
; ZDINX64-NEXT: ld s0, 112(a0)
; ZDINX64-NEXT: ld s1, 120(a0)
; ZDINX64-NEXT: ld s2, 128(a0)
; ZDINX64-NEXT: ld s3, 136(a0)
; ZDINX64-NEXT: ld s4, 144(a0)
; ZDINX64-NEXT: ld s5, 152(a0)
; ZDINX64-NEXT: ld s6, 160(a0)
; ZDINX64-NEXT: ld s7, 168(a0)
; ZDINX64-NEXT: ld s8, 176(a0)
; ZDINX64-NEXT: ld s9, 184(a0)
; ZDINX64-NEXT: ld s10, 192(a0)
; ZDINX64-NEXT: ld s11, 200(a0)
; ZDINX64-NEXT: ld ra, 208(a0)
; ZDINX64-NEXT: ld a4, 216(a0)
; ZDINX64-NEXT: ld a3, 224(a0)
; ZDINX64-NEXT: ld a2, 232(a0)
; ZDINX64-NEXT: ld a1, 240(a0)
; ZDINX64-NEXT: ld a0, 248(a0)
; ZDINX64-NEXT: sd a0, 152(sp)
; ZDINX64-NEXT: sd a1, 144(sp)
; ZDINX64-NEXT: sd a2, 136(sp)
; ZDINX64-NEXT: sd a3, 128(sp)
; ZDINX64-NEXT: sd a4, 120(sp)
; ZDINX64-NEXT: sd ra, 112(sp)
; ZDINX64-NEXT: sd s11, 104(sp)
; ZDINX64-NEXT: sd s10, 96(sp)
; ZDINX64-NEXT: sd s9, 88(sp)
; ZDINX64-NEXT: sd s8, 80(sp)
; ZDINX64-NEXT: sd s7, 72(sp)
; ZDINX64-NEXT: sd s6, 64(sp)
; ZDINX64-NEXT: sd s5, 56(sp)
; ZDINX64-NEXT: sd s4, 48(sp)
; ZDINX64-NEXT: sd s3, 40(sp)
; ZDINX64-NEXT: sd s2, 32(sp)
; ZDINX64-NEXT: sd s1, 24(sp)
; ZDINX64-NEXT: sd s0, 16(sp)
; ZDINX64-NEXT: sd t2, 8(sp)
; ZDINX64-NEXT: sd t1, 0(sp)
; ZDINX64-NEXT: mv a0, t0
; ZDINX64-NEXT: ld a1, 192(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld a2, 184(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld a3, 176(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld a4, 168(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: call callee_half_32
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w def $x10
; ZDINX64-NEXT: lui a1, 1048560
; ZDINX64-NEXT: or a0, a0, a1
; ZDINX64-NEXT: # kill: def $x10_w killed $x10_w killed $x10
; ZDINX64-NEXT: ld ra, 296(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s0, 288(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s1, 280(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s2, 272(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s3, 264(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s4, 256(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s5, 248(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s6, 240(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s7, 232(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s8, 224(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s9, 216(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s10, 208(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s11, 200(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: addi sp, sp, 304
; ZDINX64-NEXT: ret
%C = call fastcc half @callee_half_32(<32 x half> %A)
ret half %C
}
define fastcc float @callee_float_32(<32 x float> %A) nounwind {
; ZHINX32-LABEL: callee_float_32:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: callee_float_32:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: callee_float_32:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: callee_float_32:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: callee_float_32:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: callee_float_32:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: ret
%B = extractelement <32 x float> %A, i32 0
ret float %B
}
define float @caller_float_32(<32 x float> %A) nounwind {
; ZHINX32-LABEL: caller_float_32:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: addi sp, sp, -160
; ZHINX32-NEXT: sw ra, 156(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s0, 152(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s1, 148(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s2, 144(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s3, 140(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s4, 136(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s5, 132(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s6, 128(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s7, 124(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s8, 120(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s9, 116(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s10, 112(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: sw s11, 108(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lw t0, 160(sp)
; ZHINX32-NEXT: sw t0, 104(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lw t0, 164(sp)
; ZHINX32-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lw t0, 168(sp)
; ZHINX32-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lw t0, 172(sp)
; ZHINX32-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZHINX32-NEXT: lw t6, 176(sp)
; ZHINX32-NEXT: lw t5, 180(sp)
; ZHINX32-NEXT: lw t4, 184(sp)
; ZHINX32-NEXT: lw s0, 188(sp)
; ZHINX32-NEXT: lw s1, 192(sp)
; ZHINX32-NEXT: lw s2, 196(sp)
; ZHINX32-NEXT: lw s3, 200(sp)
; ZHINX32-NEXT: lw s4, 204(sp)
; ZHINX32-NEXT: lw s5, 208(sp)
; ZHINX32-NEXT: lw s6, 212(sp)
; ZHINX32-NEXT: lw s7, 216(sp)
; ZHINX32-NEXT: lw s8, 220(sp)
; ZHINX32-NEXT: lw s9, 224(sp)
; ZHINX32-NEXT: lw s10, 228(sp)
; ZHINX32-NEXT: lw s11, 232(sp)
; ZHINX32-NEXT: lw ra, 236(sp)
; ZHINX32-NEXT: lw t3, 240(sp)
; ZHINX32-NEXT: lw t2, 244(sp)
; ZHINX32-NEXT: lw t1, 248(sp)
; ZHINX32-NEXT: lw t0, 252(sp)
; ZHINX32-NEXT: sw t0, 76(sp)
; ZHINX32-NEXT: sw t1, 72(sp)
; ZHINX32-NEXT: sw t2, 68(sp)
; ZHINX32-NEXT: sw t3, 64(sp)
; ZHINX32-NEXT: sw ra, 60(sp)
; ZHINX32-NEXT: sw s11, 56(sp)
; ZHINX32-NEXT: sw s10, 52(sp)
; ZHINX32-NEXT: sw s9, 48(sp)
; ZHINX32-NEXT: sw s8, 44(sp)
; ZHINX32-NEXT: sw s7, 40(sp)
; ZHINX32-NEXT: sw s6, 36(sp)
; ZHINX32-NEXT: sw s5, 32(sp)
; ZHINX32-NEXT: sw s4, 28(sp)
; ZHINX32-NEXT: sw s3, 24(sp)
; ZHINX32-NEXT: sw s2, 20(sp)
; ZHINX32-NEXT: sw s1, 16(sp)
; ZHINX32-NEXT: sw s0, 12(sp)
; ZHINX32-NEXT: sw t4, 8(sp)
; ZHINX32-NEXT: sw t5, 4(sp)
; ZHINX32-NEXT: sw t6, 0(sp)
; ZHINX32-NEXT: lw t3, 104(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw t4, 100(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw t5, 96(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw t6, 92(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: call callee_float_32
; ZHINX32-NEXT: lw ra, 156(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s0, 152(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s1, 148(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s2, 144(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s3, 140(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s4, 136(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s5, 132(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s6, 128(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s7, 124(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s8, 120(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s9, 116(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s10, 112(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: lw s11, 108(sp) # 4-byte Folded Reload
; ZHINX32-NEXT: addi sp, sp, 160
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: caller_float_32:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: addi sp, sp, -208
; ZHINX64-NEXT: sd ra, 200(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s0, 192(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s1, 184(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s2, 176(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s3, 168(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s4, 160(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s5, 152(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s6, 144(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s7, 136(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s8, 128(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s9, 120(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s10, 112(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: sd s11, 104(sp) # 8-byte Folded Spill
; ZHINX64-NEXT: lw t0, 208(sp)
; ZHINX64-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZHINX64-NEXT: lw t0, 216(sp)
; ZHINX64-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZHINX64-NEXT: lw t0, 224(sp)
; ZHINX64-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZHINX64-NEXT: lw t0, 232(sp)
; ZHINX64-NEXT: sw t0, 88(sp) # 4-byte Folded Spill
; ZHINX64-NEXT: lw t6, 240(sp)
; ZHINX64-NEXT: lw t5, 248(sp)
; ZHINX64-NEXT: lw t4, 256(sp)
; ZHINX64-NEXT: lw s0, 264(sp)
; ZHINX64-NEXT: lw s1, 272(sp)
; ZHINX64-NEXT: lw s2, 280(sp)
; ZHINX64-NEXT: lw s3, 288(sp)
; ZHINX64-NEXT: lw s4, 296(sp)
; ZHINX64-NEXT: lw s5, 304(sp)
; ZHINX64-NEXT: lw s6, 312(sp)
; ZHINX64-NEXT: lw s7, 320(sp)
; ZHINX64-NEXT: lw s8, 328(sp)
; ZHINX64-NEXT: lw s9, 336(sp)
; ZHINX64-NEXT: lw s10, 344(sp)
; ZHINX64-NEXT: lw s11, 352(sp)
; ZHINX64-NEXT: lw ra, 360(sp)
; ZHINX64-NEXT: lw t3, 368(sp)
; ZHINX64-NEXT: lw t2, 376(sp)
; ZHINX64-NEXT: lw t1, 384(sp)
; ZHINX64-NEXT: lw t0, 392(sp)
; ZHINX64-NEXT: sw t0, 76(sp)
; ZHINX64-NEXT: sw t1, 72(sp)
; ZHINX64-NEXT: sw t2, 68(sp)
; ZHINX64-NEXT: sw t3, 64(sp)
; ZHINX64-NEXT: sw ra, 60(sp)
; ZHINX64-NEXT: sw s11, 56(sp)
; ZHINX64-NEXT: sw s10, 52(sp)
; ZHINX64-NEXT: sw s9, 48(sp)
; ZHINX64-NEXT: sw s8, 44(sp)
; ZHINX64-NEXT: sw s7, 40(sp)
; ZHINX64-NEXT: sw s6, 36(sp)
; ZHINX64-NEXT: sw s5, 32(sp)
; ZHINX64-NEXT: sw s4, 28(sp)
; ZHINX64-NEXT: sw s3, 24(sp)
; ZHINX64-NEXT: sw s2, 20(sp)
; ZHINX64-NEXT: sw s1, 16(sp)
; ZHINX64-NEXT: sw s0, 12(sp)
; ZHINX64-NEXT: sw t4, 8(sp)
; ZHINX64-NEXT: sw t5, 4(sp)
; ZHINX64-NEXT: sw t6, 0(sp)
; ZHINX64-NEXT: lw t3, 100(sp) # 4-byte Folded Reload
; ZHINX64-NEXT: lw t4, 96(sp) # 4-byte Folded Reload
; ZHINX64-NEXT: lw t5, 92(sp) # 4-byte Folded Reload
; ZHINX64-NEXT: lw t6, 88(sp) # 4-byte Folded Reload
; ZHINX64-NEXT: call callee_float_32
; ZHINX64-NEXT: ld ra, 200(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s0, 192(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s1, 184(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s2, 176(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s3, 168(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s4, 160(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s5, 152(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s6, 144(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s7, 136(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s8, 128(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s9, 120(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s10, 112(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: ld s11, 104(sp) # 8-byte Folded Reload
; ZHINX64-NEXT: addi sp, sp, 208
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: caller_float_32:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: addi sp, sp, -160
; ZFINX32-NEXT: sw ra, 156(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s0, 152(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s1, 148(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s2, 144(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s3, 140(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s4, 136(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s5, 132(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s6, 128(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s7, 124(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s8, 120(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s9, 116(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s10, 112(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: sw s11, 108(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t0, 160(sp)
; ZFINX32-NEXT: sw t0, 104(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t0, 164(sp)
; ZFINX32-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t0, 168(sp)
; ZFINX32-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t0, 172(sp)
; ZFINX32-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZFINX32-NEXT: lw t6, 176(sp)
; ZFINX32-NEXT: lw t5, 180(sp)
; ZFINX32-NEXT: lw t4, 184(sp)
; ZFINX32-NEXT: lw s0, 188(sp)
; ZFINX32-NEXT: lw s1, 192(sp)
; ZFINX32-NEXT: lw s2, 196(sp)
; ZFINX32-NEXT: lw s3, 200(sp)
; ZFINX32-NEXT: lw s4, 204(sp)
; ZFINX32-NEXT: lw s5, 208(sp)
; ZFINX32-NEXT: lw s6, 212(sp)
; ZFINX32-NEXT: lw s7, 216(sp)
; ZFINX32-NEXT: lw s8, 220(sp)
; ZFINX32-NEXT: lw s9, 224(sp)
; ZFINX32-NEXT: lw s10, 228(sp)
; ZFINX32-NEXT: lw s11, 232(sp)
; ZFINX32-NEXT: lw ra, 236(sp)
; ZFINX32-NEXT: lw t3, 240(sp)
; ZFINX32-NEXT: lw t2, 244(sp)
; ZFINX32-NEXT: lw t1, 248(sp)
; ZFINX32-NEXT: lw t0, 252(sp)
; ZFINX32-NEXT: sw t0, 76(sp)
; ZFINX32-NEXT: sw t1, 72(sp)
; ZFINX32-NEXT: sw t2, 68(sp)
; ZFINX32-NEXT: sw t3, 64(sp)
; ZFINX32-NEXT: sw ra, 60(sp)
; ZFINX32-NEXT: sw s11, 56(sp)
; ZFINX32-NEXT: sw s10, 52(sp)
; ZFINX32-NEXT: sw s9, 48(sp)
; ZFINX32-NEXT: sw s8, 44(sp)
; ZFINX32-NEXT: sw s7, 40(sp)
; ZFINX32-NEXT: sw s6, 36(sp)
; ZFINX32-NEXT: sw s5, 32(sp)
; ZFINX32-NEXT: sw s4, 28(sp)
; ZFINX32-NEXT: sw s3, 24(sp)
; ZFINX32-NEXT: sw s2, 20(sp)
; ZFINX32-NEXT: sw s1, 16(sp)
; ZFINX32-NEXT: sw s0, 12(sp)
; ZFINX32-NEXT: sw t4, 8(sp)
; ZFINX32-NEXT: sw t5, 4(sp)
; ZFINX32-NEXT: sw t6, 0(sp)
; ZFINX32-NEXT: lw t3, 104(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw t4, 100(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw t5, 96(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw t6, 92(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: call callee_float_32
; ZFINX32-NEXT: lw ra, 156(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s0, 152(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s1, 148(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s2, 144(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s3, 140(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s4, 136(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s5, 132(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s6, 128(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s7, 124(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s8, 120(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s9, 116(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s10, 112(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: lw s11, 108(sp) # 4-byte Folded Reload
; ZFINX32-NEXT: addi sp, sp, 160
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: caller_float_32:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: addi sp, sp, -208
; ZFINX64-NEXT: sd ra, 200(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s0, 192(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s1, 184(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s2, 176(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s3, 168(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s4, 160(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s5, 152(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s6, 144(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s7, 136(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s8, 128(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s9, 120(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s10, 112(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: sd s11, 104(sp) # 8-byte Folded Spill
; ZFINX64-NEXT: lw t0, 208(sp)
; ZFINX64-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZFINX64-NEXT: lw t0, 216(sp)
; ZFINX64-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZFINX64-NEXT: lw t0, 224(sp)
; ZFINX64-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZFINX64-NEXT: lw t0, 232(sp)
; ZFINX64-NEXT: sw t0, 88(sp) # 4-byte Folded Spill
; ZFINX64-NEXT: lw t6, 240(sp)
; ZFINX64-NEXT: lw t5, 248(sp)
; ZFINX64-NEXT: lw t4, 256(sp)
; ZFINX64-NEXT: lw s0, 264(sp)
; ZFINX64-NEXT: lw s1, 272(sp)
; ZFINX64-NEXT: lw s2, 280(sp)
; ZFINX64-NEXT: lw s3, 288(sp)
; ZFINX64-NEXT: lw s4, 296(sp)
; ZFINX64-NEXT: lw s5, 304(sp)
; ZFINX64-NEXT: lw s6, 312(sp)
; ZFINX64-NEXT: lw s7, 320(sp)
; ZFINX64-NEXT: lw s8, 328(sp)
; ZFINX64-NEXT: lw s9, 336(sp)
; ZFINX64-NEXT: lw s10, 344(sp)
; ZFINX64-NEXT: lw s11, 352(sp)
; ZFINX64-NEXT: lw ra, 360(sp)
; ZFINX64-NEXT: lw t3, 368(sp)
; ZFINX64-NEXT: lw t2, 376(sp)
; ZFINX64-NEXT: lw t1, 384(sp)
; ZFINX64-NEXT: lw t0, 392(sp)
; ZFINX64-NEXT: sw t0, 76(sp)
; ZFINX64-NEXT: sw t1, 72(sp)
; ZFINX64-NEXT: sw t2, 68(sp)
; ZFINX64-NEXT: sw t3, 64(sp)
; ZFINX64-NEXT: sw ra, 60(sp)
; ZFINX64-NEXT: sw s11, 56(sp)
; ZFINX64-NEXT: sw s10, 52(sp)
; ZFINX64-NEXT: sw s9, 48(sp)
; ZFINX64-NEXT: sw s8, 44(sp)
; ZFINX64-NEXT: sw s7, 40(sp)
; ZFINX64-NEXT: sw s6, 36(sp)
; ZFINX64-NEXT: sw s5, 32(sp)
; ZFINX64-NEXT: sw s4, 28(sp)
; ZFINX64-NEXT: sw s3, 24(sp)
; ZFINX64-NEXT: sw s2, 20(sp)
; ZFINX64-NEXT: sw s1, 16(sp)
; ZFINX64-NEXT: sw s0, 12(sp)
; ZFINX64-NEXT: sw t4, 8(sp)
; ZFINX64-NEXT: sw t5, 4(sp)
; ZFINX64-NEXT: sw t6, 0(sp)
; ZFINX64-NEXT: lw t3, 100(sp) # 4-byte Folded Reload
; ZFINX64-NEXT: lw t4, 96(sp) # 4-byte Folded Reload
; ZFINX64-NEXT: lw t5, 92(sp) # 4-byte Folded Reload
; ZFINX64-NEXT: lw t6, 88(sp) # 4-byte Folded Reload
; ZFINX64-NEXT: call callee_float_32
; ZFINX64-NEXT: ld ra, 200(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s0, 192(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s1, 184(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s2, 176(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s3, 168(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s4, 160(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s5, 152(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s6, 144(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s7, 136(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s8, 128(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s9, 120(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s10, 112(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: ld s11, 104(sp) # 8-byte Folded Reload
; ZFINX64-NEXT: addi sp, sp, 208
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: caller_float_32:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: addi sp, sp, -160
; ZDINX32-NEXT: sw ra, 156(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s0, 152(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s1, 148(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s2, 144(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s3, 140(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s4, 136(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s5, 132(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s6, 128(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s7, 124(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s8, 120(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s9, 116(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s10, 112(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: sw s11, 108(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t0, 160(sp)
; ZDINX32-NEXT: sw t0, 104(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t0, 164(sp)
; ZDINX32-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t0, 168(sp)
; ZDINX32-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t0, 172(sp)
; ZDINX32-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZDINX32-NEXT: lw t6, 176(sp)
; ZDINX32-NEXT: lw t5, 180(sp)
; ZDINX32-NEXT: lw t4, 184(sp)
; ZDINX32-NEXT: lw s0, 188(sp)
; ZDINX32-NEXT: lw s1, 192(sp)
; ZDINX32-NEXT: lw s2, 196(sp)
; ZDINX32-NEXT: lw s3, 200(sp)
; ZDINX32-NEXT: lw s4, 204(sp)
; ZDINX32-NEXT: lw s5, 208(sp)
; ZDINX32-NEXT: lw s6, 212(sp)
; ZDINX32-NEXT: lw s7, 216(sp)
; ZDINX32-NEXT: lw s8, 220(sp)
; ZDINX32-NEXT: lw s9, 224(sp)
; ZDINX32-NEXT: lw s10, 228(sp)
; ZDINX32-NEXT: lw s11, 232(sp)
; ZDINX32-NEXT: lw ra, 236(sp)
; ZDINX32-NEXT: lw t3, 240(sp)
; ZDINX32-NEXT: lw t2, 244(sp)
; ZDINX32-NEXT: lw t1, 248(sp)
; ZDINX32-NEXT: lw t0, 252(sp)
; ZDINX32-NEXT: sw t0, 76(sp)
; ZDINX32-NEXT: sw t1, 72(sp)
; ZDINX32-NEXT: sw t2, 68(sp)
; ZDINX32-NEXT: sw t3, 64(sp)
; ZDINX32-NEXT: sw ra, 60(sp)
; ZDINX32-NEXT: sw s11, 56(sp)
; ZDINX32-NEXT: sw s10, 52(sp)
; ZDINX32-NEXT: sw s9, 48(sp)
; ZDINX32-NEXT: sw s8, 44(sp)
; ZDINX32-NEXT: sw s7, 40(sp)
; ZDINX32-NEXT: sw s6, 36(sp)
; ZDINX32-NEXT: sw s5, 32(sp)
; ZDINX32-NEXT: sw s4, 28(sp)
; ZDINX32-NEXT: sw s3, 24(sp)
; ZDINX32-NEXT: sw s2, 20(sp)
; ZDINX32-NEXT: sw s1, 16(sp)
; ZDINX32-NEXT: sw s0, 12(sp)
; ZDINX32-NEXT: sw t4, 8(sp)
; ZDINX32-NEXT: sw t5, 4(sp)
; ZDINX32-NEXT: sw t6, 0(sp)
; ZDINX32-NEXT: lw t3, 104(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw t4, 100(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw t5, 96(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw t6, 92(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: call callee_float_32
; ZDINX32-NEXT: lw ra, 156(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s0, 152(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s1, 148(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s2, 144(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s3, 140(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s4, 136(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s5, 132(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s6, 128(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s7, 124(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s8, 120(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s9, 116(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s10, 112(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: lw s11, 108(sp) # 4-byte Folded Reload
; ZDINX32-NEXT: addi sp, sp, 160
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: caller_float_32:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: addi sp, sp, -208
; ZDINX64-NEXT: sd ra, 200(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s0, 192(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s1, 184(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s2, 176(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s3, 168(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s4, 160(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s5, 152(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s6, 144(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s7, 136(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s8, 128(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s9, 120(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s10, 112(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: sd s11, 104(sp) # 8-byte Folded Spill
; ZDINX64-NEXT: lw t0, 208(sp)
; ZDINX64-NEXT: sw t0, 100(sp) # 4-byte Folded Spill
; ZDINX64-NEXT: lw t0, 216(sp)
; ZDINX64-NEXT: sw t0, 96(sp) # 4-byte Folded Spill
; ZDINX64-NEXT: lw t0, 224(sp)
; ZDINX64-NEXT: sw t0, 92(sp) # 4-byte Folded Spill
; ZDINX64-NEXT: lw t0, 232(sp)
; ZDINX64-NEXT: sw t0, 88(sp) # 4-byte Folded Spill
; ZDINX64-NEXT: lw t6, 240(sp)
; ZDINX64-NEXT: lw t5, 248(sp)
; ZDINX64-NEXT: lw t4, 256(sp)
; ZDINX64-NEXT: lw s0, 264(sp)
; ZDINX64-NEXT: lw s1, 272(sp)
; ZDINX64-NEXT: lw s2, 280(sp)
; ZDINX64-NEXT: lw s3, 288(sp)
; ZDINX64-NEXT: lw s4, 296(sp)
; ZDINX64-NEXT: lw s5, 304(sp)
; ZDINX64-NEXT: lw s6, 312(sp)
; ZDINX64-NEXT: lw s7, 320(sp)
; ZDINX64-NEXT: lw s8, 328(sp)
; ZDINX64-NEXT: lw s9, 336(sp)
; ZDINX64-NEXT: lw s10, 344(sp)
; ZDINX64-NEXT: lw s11, 352(sp)
; ZDINX64-NEXT: lw ra, 360(sp)
; ZDINX64-NEXT: lw t3, 368(sp)
; ZDINX64-NEXT: lw t2, 376(sp)
; ZDINX64-NEXT: lw t1, 384(sp)
; ZDINX64-NEXT: lw t0, 392(sp)
; ZDINX64-NEXT: sw t0, 76(sp)
; ZDINX64-NEXT: sw t1, 72(sp)
; ZDINX64-NEXT: sw t2, 68(sp)
; ZDINX64-NEXT: sw t3, 64(sp)
; ZDINX64-NEXT: sw ra, 60(sp)
; ZDINX64-NEXT: sw s11, 56(sp)
; ZDINX64-NEXT: sw s10, 52(sp)
; ZDINX64-NEXT: sw s9, 48(sp)
; ZDINX64-NEXT: sw s8, 44(sp)
; ZDINX64-NEXT: sw s7, 40(sp)
; ZDINX64-NEXT: sw s6, 36(sp)
; ZDINX64-NEXT: sw s5, 32(sp)
; ZDINX64-NEXT: sw s4, 28(sp)
; ZDINX64-NEXT: sw s3, 24(sp)
; ZDINX64-NEXT: sw s2, 20(sp)
; ZDINX64-NEXT: sw s1, 16(sp)
; ZDINX64-NEXT: sw s0, 12(sp)
; ZDINX64-NEXT: sw t4, 8(sp)
; ZDINX64-NEXT: sw t5, 4(sp)
; ZDINX64-NEXT: sw t6, 0(sp)
; ZDINX64-NEXT: lw t3, 100(sp) # 4-byte Folded Reload
; ZDINX64-NEXT: lw t4, 96(sp) # 4-byte Folded Reload
; ZDINX64-NEXT: lw t5, 92(sp) # 4-byte Folded Reload
; ZDINX64-NEXT: lw t6, 88(sp) # 4-byte Folded Reload
; ZDINX64-NEXT: call callee_float_32
; ZDINX64-NEXT: ld ra, 200(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s0, 192(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s1, 184(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s2, 176(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s3, 168(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s4, 160(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s5, 152(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s6, 144(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s7, 136(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s8, 128(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s9, 120(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s10, 112(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: ld s11, 104(sp) # 8-byte Folded Reload
; ZDINX64-NEXT: addi sp, sp, 208
; ZDINX64-NEXT: ret
%C = call fastcc float @callee_float_32(<32 x float> %A)
ret float %C
}
define fastcc double @callee_double_32(<32 x double> %A) nounwind {
; ZHINX32-LABEL: callee_double_32:
; ZHINX32: # %bb.0:
; ZHINX32-NEXT: ret
;
; ZHINX64-LABEL: callee_double_32:
; ZHINX64: # %bb.0:
; ZHINX64-NEXT: ret
;
; ZFINX32-LABEL: callee_double_32:
; ZFINX32: # %bb.0:
; ZFINX32-NEXT: ret
;
; ZFINX64-LABEL: callee_double_32:
; ZFINX64: # %bb.0:
; ZFINX64-NEXT: ret
;
; ZDINX32-LABEL: callee_double_32:
; ZDINX32: # %bb.0:
; ZDINX32-NEXT: lw a0, 0(sp)
; ZDINX32-NEXT: lw a1, 4(sp)
; ZDINX32-NEXT: ret
;
; ZDINX64-LABEL: callee_double_32:
; ZDINX64: # %bb.0:
; ZDINX64-NEXT: ret
%B = extractelement <32 x double> %A, i32 0
ret double %B
}