llvm-for-llvmta/test/CodeGen/PowerPC/fp_to_uint.ll

10 lines
220 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fctiwz | count 1
define i16 @foo(float %a) {
entry:
%tmp.1 = fptoui float %a to i16 ; <i16> [#uses=1]
ret i16 %tmp.1
}