mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23995 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5cd61ce1be
commit
92d6bb35d7
9
test/CodeGen/PowerPC/fp_to_uint.ll
Normal file
9
test/CodeGen/PowerPC/fp_to_uint.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep fctiwz | wc -l | grep 1
|
||||
|
||||
implementation
|
||||
|
||||
ushort %foo(float %a) {
|
||||
entry:
|
||||
%tmp.1 = cast float %a to ushort
|
||||
ret ushort %tmp.1
|
||||
}
|
Loading…
Reference in New Issue
Block a user