llvm-project/llvm/test/CodeGen/Mips/2008-08-04-Bitconvert.ll
Fangrui Song ae26f50aea [test] Change llc -march=mips* to -mtriple=mips*
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2024-12-10 22:14:06 -08:00

16 lines
247 B
LLVM

; RUN: llc -mtriple=mips < %s | FileCheck %s
define float @A(i32 %u) nounwind {
entry:
; CHECK: mtc1
bitcast i32 %u to float
ret float %0
}
define i32 @B(float %u) nounwind {
entry:
; CHECK: mfc1
bitcast float %u to i32
ret i32 %0
}