llvm-project/llvm/test/CodeGen/PowerPC/fp_to_uint.ll

10 lines
216 B
LLVM
Raw Normal View History

; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -march=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
}