blob: 7fec19bdf3f572a8d7d73164ef2b1fc675fca72b [file] [log] [blame]
Andrew Lenharth714dd6a2005-04-13 13:00:16 +00001; Make sure this testcase codegens to the bic instruction
Reid Spencerd1f83692007-04-15 18:40:57 +00002; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
Andrew Lenharth714dd6a2005-04-13 13:00:16 +00003
Andrew Lenharth714dd6a2005-04-13 13:00:16 +00004
Reid Spencer314e1cb2007-07-19 23:13:04 +00005define i16 @foo(i64 %y) zeroext {
Andrew Lenharth714dd6a2005-04-13 13:00:16 +00006entry:
Reid Spencerdeb4d5a2006-12-31 06:02:00 +00007 %tmp.1 = trunc i64 %y to i16 ; <ushort> [#uses=1]
8 ret i16 %tmp.1
Andrew Lenharth714dd6a2005-04-13 13:00:16 +00009}