CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
419 lines
18 KiB
LLVM
419 lines
18 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+fp64 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32R2-FP64
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+soft-float -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32R2-SF
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r3 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32R3R5
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r5 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32R3R5
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r6 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M32R6
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips3 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M64
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M64
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64r2 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M64
|
|
; RUN: llc < %s -mtriple=mips64-linux-gnu -mcpu=mips64r6 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=M64R6
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=MMR2-FP32
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips,fp64 -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=MMR2-FP64
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips,soft-float -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=MMR2-SF
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r6 -mattr=+micromips -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=MMR6
|
|
; RUN: llc < %s -mtriple=mips-linux-gnu -mcpu=mips32r6 -mattr=+micromips,soft-float -asm-show-inst |\
|
|
; RUN: FileCheck %s -check-prefixes=MMR6-SF
|
|
|
|
; Test that fptosi can be matched for MIPS targets for various FPU
|
|
; configurations
|
|
|
|
define i32 @test1(float %t) {
|
|
; M32-LABEL: test1:
|
|
; M32: # %bb.0: # %entry
|
|
; M32-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M32-NEXT: # <MCOperand Reg:F0>
|
|
; M32-NEXT: # <MCOperand Reg:F12>>
|
|
; M32-NEXT: jr $ra # <MCInst #[[#MCINST2:]] JR
|
|
; M32-NEXT: # <MCOperand Reg:RA>>
|
|
; M32-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M32-NEXT: # <MCOperand Reg:V0>
|
|
; M32-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R2-FP64-LABEL: test1:
|
|
; M32R2-FP64: # %bb.0: # %entry
|
|
; M32R2-FP64-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:F0>
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:F12>>
|
|
; M32R2-FP64-NEXT: jr $ra # <MCInst #[[#MCINST2:]] JR
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R2-FP64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:V0>
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R2-SF-LABEL: test1:
|
|
; M32R2-SF: # %bb.0: # %entry
|
|
; M32R2-SF-NEXT: addiu $sp, $sp, -24 # <MCInst #[[#MCINST4:]] ADDiu
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; M32R2-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; M32R2-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; M32R2-SF-NEXT: # <MCInst #[[#MCINST5:]] SW
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; M32R2-SF-NEXT: .cfi_offset 31, -4
|
|
; M32R2-SF-NEXT: jal __fixsfsi # <MCInst #[[#MCINST6:]] JAL
|
|
; M32R2-SF-NEXT: # <MCOperand Expr:__fixsfsi>>
|
|
; M32R2-SF-NEXT: nop # <MCInst #[[#MCINST7:]] SLL
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:0>>
|
|
; M32R2-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; M32R2-SF-NEXT: # <MCInst #[[#MCINST8:]] LW
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; M32R2-SF-NEXT: jr $ra # <MCInst #[[#MCINST2:]] JR
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R2-SF-NEXT: addiu $sp, $sp, 24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:24>>
|
|
;
|
|
; M32R3R5-LABEL: test1:
|
|
; M32R3R5: # %bb.0: # %entry
|
|
; M32R3R5-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M32R3R5-NEXT: # <MCOperand Reg:F0>
|
|
; M32R3R5-NEXT: # <MCOperand Reg:F12>>
|
|
; M32R3R5-NEXT: jr $ra # <MCInst #[[#MCINST2:]] JR
|
|
; M32R3R5-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R3R5-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M32R3R5-NEXT: # <MCOperand Reg:V0>
|
|
; M32R3R5-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R6-LABEL: test1:
|
|
; M32R6: # %bb.0: # %entry
|
|
; M32R6-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M32R6-NEXT: # <MCOperand Reg:F0>
|
|
; M32R6-NEXT: # <MCOperand Reg:F12>>
|
|
; M32R6-NEXT: jr $ra # <MCInst #[[#MCINST9:]] JALR
|
|
; M32R6-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R6-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M32R6-NEXT: # <MCOperand Reg:V0>
|
|
; M32R6-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M64-LABEL: test1:
|
|
; M64: # %bb.0: # %entry
|
|
; M64-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M64-NEXT: # <MCOperand Reg:F0>
|
|
; M64-NEXT: # <MCOperand Reg:F12>>
|
|
; M64-NEXT: jr $ra # <MCInst #[[#MCINST2:]] JR
|
|
; M64-NEXT: # <MCOperand Reg:RA_64>>
|
|
; M64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M64-NEXT: # <MCOperand Reg:V0>
|
|
; M64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M64R6-LABEL: test1:
|
|
; M64R6: # %bb.0: # %entry
|
|
; M64R6-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST1:]] TRUNC_W_S
|
|
; M64R6-NEXT: # <MCOperand Reg:F0>
|
|
; M64R6-NEXT: # <MCOperand Reg:F12>>
|
|
; M64R6-NEXT: jr $ra # <MCInst #[[#MCINST10:]] JALR64
|
|
; M64R6-NEXT: # <MCOperand Reg:ZERO_64>
|
|
; M64R6-NEXT: # <MCOperand Reg:RA_64>>
|
|
; M64R6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3:]] MFC1
|
|
; M64R6-NEXT: # <MCOperand Reg:V0>
|
|
; M64R6-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-FP32-LABEL: test1:
|
|
; MMR2-FP32: # %bb.0: # %entry
|
|
; MMR2-FP32-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST11:]] TRUNC_W_S_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:F0>
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:F12>>
|
|
; MMR2-FP32-NEXT: jr $ra # <MCInst #[[#MCINST12:]] JR_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:RA>>
|
|
; MMR2-FP32-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13:]] MFC1_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:V0>
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-FP64-LABEL: test1:
|
|
; MMR2-FP64: # %bb.0: # %entry
|
|
; MMR2-FP64-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST11:]] TRUNC_W_S_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:F0>
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:F12>>
|
|
; MMR2-FP64-NEXT: jr $ra # <MCInst #[[#MCINST12:]] JR_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:RA>>
|
|
; MMR2-FP64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13:]] MFC1_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:V0>
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-SF-LABEL: test1:
|
|
; MMR2-SF: # %bb.0: # %entry
|
|
; MMR2-SF-NEXT: addiusp -24 # <MCInst #[[#MCINST14:]] ADDIUSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; MMR2-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; MMR2-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; MMR2-SF-NEXT: # <MCInst #[[#MCINST15:]] SWSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR2-SF-NEXT: .cfi_offset 31, -4
|
|
; MMR2-SF-NEXT: jal __fixsfsi # <MCInst #[[#MCINST16:]] JAL_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Expr:__fixsfsi>>
|
|
; MMR2-SF-NEXT: nop # <MCInst #[[#MCINST17:]] SLL_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:0>>
|
|
; MMR2-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; MMR2-SF-NEXT: # <MCInst #[[#MCINST18:]] LWSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR2-SF-NEXT: addiusp 24 # <MCInst #[[#MCINST14]] ADDIUSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:24>>
|
|
; MMR2-SF-NEXT: jrc $ra # <MCInst #[[#MCINST19:]] JRC16_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>>
|
|
;
|
|
; MMR6-LABEL: test1:
|
|
; MMR6: # %bb.0: # %entry
|
|
; MMR6-NEXT: trunc.w.s $f0, $f12 # <MCInst #[[#MCINST20:]] TRUNC_W_S_MMR6
|
|
; MMR6-NEXT: # <MCOperand Reg:F0>
|
|
; MMR6-NEXT: # <MCOperand Reg:F12>>
|
|
; MMR6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13:]] MFC1_MM
|
|
; MMR6-NEXT: # <MCOperand Reg:V0>
|
|
; MMR6-NEXT: # <MCOperand Reg:F0>>
|
|
; MMR6-NEXT: jrc $ra # <MCInst #[[#MCINST19:]] JRC16_MM
|
|
; MMR6-NEXT: # <MCOperand Reg:RA>>
|
|
;
|
|
; MMR6-SF-LABEL: test1:
|
|
; MMR6-SF: # %bb.0: # %entry
|
|
; MMR6-SF-NEXT: addiu $sp, $sp, -24 # <MCInst #[[#MCINST4:]] ADDiu
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; MMR6-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; MMR6-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; MMR6-SF-NEXT: # <MCInst #[[#MCINST5:]] SW
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR6-SF-NEXT: .cfi_offset 31, -4
|
|
; MMR6-SF-NEXT: balc __fixsfsi # <MCInst #[[#MCINST21:]] BALC_MMR6
|
|
; MMR6-SF-NEXT: # <MCOperand Expr:__fixsfsi>>
|
|
; MMR6-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; MMR6-SF-NEXT: # <MCInst #[[#MCINST8:]] LW
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR6-SF-NEXT: addiu $sp, $sp, 24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:24>>
|
|
; MMR6-SF-NEXT: jrc $ra # <MCInst #[[#MCINST19:]] JRC16_MM
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>>
|
|
entry:
|
|
%conv = fptosi float %t to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
define i32 @test2(double %t) {
|
|
; M32-LABEL: test2:
|
|
; M32: # %bb.0: # %entry
|
|
; M32-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST22:]] TRUNC_W_D32
|
|
; M32-NEXT: # <MCOperand Reg:F0>
|
|
; M32-NEXT: # <MCOperand Reg:D6>>
|
|
; M32-NEXT: jr $ra # <MCInst #[[#MCINST2]] JR
|
|
; M32-NEXT: # <MCOperand Reg:RA>>
|
|
; M32-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M32-NEXT: # <MCOperand Reg:V0>
|
|
; M32-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R2-FP64-LABEL: test2:
|
|
; M32R2-FP64: # %bb.0: # %entry
|
|
; M32R2-FP64-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST23:]] TRUNC_W_D64
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:F0>
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:D12_64>>
|
|
; M32R2-FP64-NEXT: jr $ra # <MCInst #[[#MCINST2]] JR
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R2-FP64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:V0>
|
|
; M32R2-FP64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R2-SF-LABEL: test2:
|
|
; M32R2-SF: # %bb.0: # %entry
|
|
; M32R2-SF-NEXT: addiu $sp, $sp, -24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; M32R2-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; M32R2-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; M32R2-SF-NEXT: # <MCInst #[[#MCINST5]] SW
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; M32R2-SF-NEXT: .cfi_offset 31, -4
|
|
; M32R2-SF-NEXT: jal __fixdfsi # <MCInst #[[#MCINST6]] JAL
|
|
; M32R2-SF-NEXT: # <MCOperand Expr:__fixdfsi>>
|
|
; M32R2-SF-NEXT: nop # <MCInst #[[#MCINST7]] SLL
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:0>>
|
|
; M32R2-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; M32R2-SF-NEXT: # <MCInst #[[#MCINST8]] LW
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; M32R2-SF-NEXT: jr $ra # <MCInst #[[#MCINST2]] JR
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R2-SF-NEXT: addiu $sp, $sp, 24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; M32R2-SF-NEXT: # <MCOperand Imm:24>>
|
|
;
|
|
; M32R3R5-LABEL: test2:
|
|
; M32R3R5: # %bb.0: # %entry
|
|
; M32R3R5-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST22:]] TRUNC_W_D32
|
|
; M32R3R5-NEXT: # <MCOperand Reg:F0>
|
|
; M32R3R5-NEXT: # <MCOperand Reg:D6>>
|
|
; M32R3R5-NEXT: jr $ra # <MCInst #[[#MCINST2]] JR
|
|
; M32R3R5-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R3R5-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M32R3R5-NEXT: # <MCOperand Reg:V0>
|
|
; M32R3R5-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M32R6-LABEL: test2:
|
|
; M32R6: # %bb.0: # %entry
|
|
; M32R6-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST23:]] TRUNC_W_D64
|
|
; M32R6-NEXT: # <MCOperand Reg:F0>
|
|
; M32R6-NEXT: # <MCOperand Reg:D12_64>>
|
|
; M32R6-NEXT: jr $ra # <MCInst #[[#MCINST9]] JALR
|
|
; M32R6-NEXT: # <MCOperand Reg:ZERO>
|
|
; M32R6-NEXT: # <MCOperand Reg:RA>>
|
|
; M32R6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M32R6-NEXT: # <MCOperand Reg:V0>
|
|
; M32R6-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M64-LABEL: test2:
|
|
; M64: # %bb.0: # %entry
|
|
; M64-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST23:]] TRUNC_W_D64
|
|
; M64-NEXT: # <MCOperand Reg:F0>
|
|
; M64-NEXT: # <MCOperand Reg:D12_64>>
|
|
; M64-NEXT: jr $ra # <MCInst #[[#MCINST2]] JR
|
|
; M64-NEXT: # <MCOperand Reg:RA_64>>
|
|
; M64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M64-NEXT: # <MCOperand Reg:V0>
|
|
; M64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; M64R6-LABEL: test2:
|
|
; M64R6: # %bb.0: # %entry
|
|
; M64R6-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST23:]] TRUNC_W_D64
|
|
; M64R6-NEXT: # <MCOperand Reg:F0>
|
|
; M64R6-NEXT: # <MCOperand Reg:D12_64>>
|
|
; M64R6-NEXT: jr $ra # <MCInst #[[#MCINST10]] JALR64
|
|
; M64R6-NEXT: # <MCOperand Reg:ZERO_64>
|
|
; M64R6-NEXT: # <MCOperand Reg:RA_64>>
|
|
; M64R6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST3]] MFC1
|
|
; M64R6-NEXT: # <MCOperand Reg:V0>
|
|
; M64R6-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-FP32-LABEL: test2:
|
|
; MMR2-FP32: # %bb.0: # %entry
|
|
; MMR2-FP32-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST24:]] TRUNC_W_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:F0>
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:D6>>
|
|
; MMR2-FP32-NEXT: jr $ra # <MCInst #[[#MCINST12]] JR_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:RA>>
|
|
; MMR2-FP32-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13]] MFC1_MM
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:V0>
|
|
; MMR2-FP32-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-FP64-LABEL: test2:
|
|
; MMR2-FP64: # %bb.0: # %entry
|
|
; MMR2-FP64-NEXT: cvt.w.d $f0, $f12 # <MCInst #[[#MCINST25:]] CVT_W_D64_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:F0>
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:D12_64>>
|
|
; MMR2-FP64-NEXT: jr $ra # <MCInst #[[#MCINST12]] JR_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:RA>>
|
|
; MMR2-FP64-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13]] MFC1_MM
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:V0>
|
|
; MMR2-FP64-NEXT: # <MCOperand Reg:F0>>
|
|
;
|
|
; MMR2-SF-LABEL: test2:
|
|
; MMR2-SF: # %bb.0: # %entry
|
|
; MMR2-SF-NEXT: addiusp -24 # <MCInst #[[#MCINST14]] ADDIUSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; MMR2-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; MMR2-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; MMR2-SF-NEXT: # <MCInst #[[#MCINST15]] SWSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR2-SF-NEXT: .cfi_offset 31, -4
|
|
; MMR2-SF-NEXT: jal __fixdfsi # <MCInst #[[#MCINST16]] JAL_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Expr:__fixdfsi>>
|
|
; MMR2-SF-NEXT: nop # <MCInst #[[#MCINST17]] SLL_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:ZERO>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:0>>
|
|
; MMR2-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; MMR2-SF-NEXT: # <MCInst #[[#MCINST18]] LWSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR2-SF-NEXT: addiusp 24 # <MCInst #[[#MCINST14]] ADDIUSP_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Imm:24>>
|
|
; MMR2-SF-NEXT: jrc $ra # <MCInst #[[#MCINST19]] JRC16_MM
|
|
; MMR2-SF-NEXT: # <MCOperand Reg:RA>>
|
|
;
|
|
; MMR6-LABEL: test2:
|
|
; MMR6: # %bb.0: # %entry
|
|
; MMR6-NEXT: trunc.w.d $f0, $f12 # <MCInst #[[#MCINST26:]] TRUNC_W_D_MMR6
|
|
; MMR6-NEXT: # <MCOperand Reg:F0>
|
|
; MMR6-NEXT: # <MCOperand Reg:D12_64>>
|
|
; MMR6-NEXT: mfc1 $2, $f0 # <MCInst #[[#MCINST13]] MFC1_MM
|
|
; MMR6-NEXT: # <MCOperand Reg:V0>
|
|
; MMR6-NEXT: # <MCOperand Reg:F0>>
|
|
; MMR6-NEXT: jrc $ra # <MCInst #[[#MCINST19]] JRC16_MM
|
|
; MMR6-NEXT: # <MCOperand Reg:RA>>
|
|
;
|
|
; MMR6-SF-LABEL: test2:
|
|
; MMR6-SF: # %bb.0: # %entry
|
|
; MMR6-SF-NEXT: addiu $sp, $sp, -24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:-24>>
|
|
; MMR6-SF-NEXT: .cfi_def_cfa_offset 24
|
|
; MMR6-SF-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
|
|
; MMR6-SF-NEXT: # <MCInst #[[#MCINST5]] SW
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR6-SF-NEXT: .cfi_offset 31, -4
|
|
; MMR6-SF-NEXT: balc __fixdfsi # <MCInst #[[#MCINST21]] BALC_MMR6
|
|
; MMR6-SF-NEXT: # <MCOperand Expr:__fixdfsi>>
|
|
; MMR6-SF-NEXT: lw $ra, 20($sp) # 4-byte Folded Reload
|
|
; MMR6-SF-NEXT: # <MCInst #[[#MCINST8]] LW
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:20>>
|
|
; MMR6-SF-NEXT: addiu $sp, $sp, 24 # <MCInst #[[#MCINST4]] ADDiu
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:SP>
|
|
; MMR6-SF-NEXT: # <MCOperand Imm:24>>
|
|
; MMR6-SF-NEXT: jrc $ra # <MCInst #[[#MCINST19]] JRC16_MM
|
|
; MMR6-SF-NEXT: # <MCOperand Reg:RA>>
|
|
entry:
|
|
%conv = fptosi double %t to i32
|
|
ret i32 %conv
|
|
}
|